Download presentation
Presentation is loading. Please wait.
Published byEstella Park Modified over 9 years ago
1
CS 157B: Database Management Systems II February 11 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron Mak www.cs.sjsu.edu/~mak
2
Department of Computer Science Spring 2013: February 11 CS 157B: Database Management Systems II © R. Mak 2 Hibernate Oral Presentations Today Section 1 Team Cosmos Team VoidStarStar A-Team Team Phoenix Section 2 Team Xeon Team VoidStar Musicmen Random
3
Department of Computer Science Spring 2013: February 11 CS 157B: Database Management Systems II © R. Mak 3 XML The Extensible Markup Language (XML) is an industry standard to: Store information. Describe the structure of that information. Exchange the information among different applications in a programming language- independent way. _
4
Department of Computer Science Spring 2013: February 11 CS 157B: Database Management Systems II © R. Mak 4 XML Components An XML element has an opening and a closing tag: The closing tag is mandatory. An XML element may be nested in another element (child elements): An XML element may have content: An element can have both content and child elements. XML documents that obey all the syntax rules are “well formed”.......... Macbeth William Shakespeare
5
Department of Computer Science Spring 2013: February 11 CS 157B: Database Management Systems II © R. Mak 5 XML Components An XML element may have attributes: Attribute values must be quoted. Attribute names must be unique within an element. An empty element has no content and no child elements. An empty element can be “self closed”. Macbeth William Shakespeare
6
Department of Computer Science Spring 2013: February 11 CS 157B: Database Management Systems II © R. Mak 6 XML Components Comments: Begin every XML document with the processing instruction: Every XML document must have a single root element:............
7
Department of Computer Science Spring 2013: February 11 CS 157B: Database Management Systems II © R. Mak 7 Most Common XML Tools XPath “Path expressions” to locate a specific node (element, attribute, or content) or node sets within an XML document. Functions to compare, count, do arithmetic, extract substrings, etc. XSLT Extensible Style Language for Transformation. Transform XML from one form to another (such as to HTML). _
8
Department of Computer Science Spring 2013: February 11 CS 157B: Database Management Systems II © R. Mak 8 Most Common XML Tools DTD Document Type Definition. Specify the schema of XML documents. The DTD is itself not an XML document. Validate an XML document against its schema. XML Schema XML Schema Definition (XSD). An alternate way to specify the schema of XML documents. An XML Schema is itself an XML document. A valid XML document is an instance of its schema. XML schema : XML document Java class : Java object _
9
Department of Computer Science Spring 2013: February 11 CS 157B: Database Management Systems II © R. Mak 9 Most Common XML Tools XML parsers Java packages to parse an XML document into a node tree. Object-XML mapping Perform object bindings with the JAXB Java package. XQuery A query language for data stored as XML. Web services A way to transport XML data between applications. Simple Object Access Protocol (SOAP) messaging framework. _
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.