Академический Документы
Профессиональный Документы
Культура Документы
By:
• ADITHYA R HANDE(R15CS012)
• AJITH SHENOY (R15CS019)
• AMITH SINGH.S(R15CS035)
• ANUPAMA Y(R15CS049)
• ANUSHA D KULAKARNI(R15CS051)
• Introduction
• Comparison between XML and HTML
• XML Syntax
• XML Queries and Mediators
• Challenges
• Summary
REVA UNIVERSITY(SCHOOL OF C&IT) 2/7/2018
WHAT IS XML?
XML HTML
• Extensible set of tags
• Content orientated • Fixed set of tags
• Standard Data • Presentation oriented
infrastructure • No data validation
• Allows multiple output capabilities
forms • Single presentation
REVA UNIVERSITY(SCHOOL OF C&IT) 2/7/2018
AUTHORING XML ELEMENTS
• Authoring guidelines:
• All elements must have an end tag.
• All elements must be cleanly nested (overlapping elements are not allowed).
• All attribute values must be enclosed in quotation marks.
• Each document must have a unique first element, the root node.
• Example:
<XML ID=“XMLID”>
<customer>
<name> Mark Hanson </name>
<custID> 29085 </custID>
</customer>
</XML>
REVA UNIVERSITY(SCHOOL OF C&IT) 2/7/2018
DOCUMENT TYPE DEFINITIONS (DTD)
• If the XML document does not follow the rules contained within the DTD, a
parser generates an error
• An XML document that conforms to the rules within a DTD is said to be valid
• <?xml version="1.0"?>
<!DOCTYPE note SYSTEM "note.dtd">
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
REVA UNIVERSITY(SCHOOL OF C&IT) 2/7/2018
NOTE.DTD
price stock
• Security