Download presentation
Presentation is loading. Please wait.
Published byJesse Barker Modified over 10 years ago
1
Introduction to the Logical Structure of XML Documents Web Engineering, SS 2007 Tomáš Pitner, Michael Derntl
2
Example of an XML Document Alfred Gusenbauer SPÖ Wilhelm Molterer ÖVP
3
Alfred Gusenbauer SPÖ Wilhelm Molterer ÖVP XML Document – Prolog/Heading XML Prolog Version: typically 1.0 Character encoding: UTF- 8, UTF-16, US- ASCII always work!
4
XML Document - Root Element Alfred Gusenbauer SPÖ Wilhelm Molterer ÖVP Root element contains most of the information in the doc, every doc must have exactly one root element!
5
Alfred Gusenbauer SPÖ Wilhelm Molterer ÖVP Elements and Tags End Tag of the element Start Tag of the element Element Element Name
6
Attributes Alfred Gusenbauer SPÖ Wilhelm Molterer ÖVP Attribute Name: unique within an element! Attribute Value: in single or double quotes! Attribute: placed in the element's start tag Note: multiple Attributes are separated through whitespace
7
Alfred Gusenbauer SPÖ Wilhelm Molterer ÖVP Element Content: Text Nodes Element Content: Text Node Element
8
Alfred Gusenbauer SPÖ Wilhelm Molterer ÖVP Element Content: Child Elements (Parent) Element
9
Alfred Gusenbauer SPÖ Wilhelm Molterer ÖVP XML Document with DTD Document Type Declaration Root element name System identifier (URI) of the entity/file with Document Type Definition
10
XML Document with Comment Alfred Gusenbauer SPÖ Wilhelm Molterer ÖVP Comment (-node): usually not interpreted by the application Comment content
11
Alfred Gusenbauer SPÖ Wilhelm Molterer ÖVP Processing Instructions Processing Instruction: interpretation depends on application PI Target PI Data (no attributes!)
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.