Introduction to the Logical Structure of XML Documents Web Engineering, SS 2007 Tomáš Pitner Example of an XML Document Alfred Gusenbauer SPÖ Wilhelm Molterer ÖVP XML Document — Prolog/Heading taf f organi/ ation="Bundes]7 \gierung"> Alf typicaUy X Q Character encoding: UTF-8, UTF-16, US-ASCII always work! id="witio"> Wilhelm MoltererÖVP XML Document - Root Element < staff organization="Bundesregierung Alfred Gusenbauer SPÖ Wilhelm Molten ?? > v< auer www.spoe.at">SPÖ Cperson id="wmo"> Start Tag of the element Wilhelm Molterer ÖVP End Tag of the element Attributes A Lzation="Bundesregierung"> agu"> eq __f Attribute Value: in single or double quotesl = "http:/ .^f. at">SPO id="witio"> W www.npvn.ať">ÖVP < /per s o] Attribute Name: unique z z , r: r: J within an element! organization="Bundesregierung"> son id="agu"> ame>Alfred Gusenbauer arty url="http://www.spoe.at">SPÖ erson> rson id="witio"> Wilhelm Molterer ÖVP Element Content: Text Node Element Content: Child Elements ^Parent) Element [n= »h0' encoding= f UTF-8 f ?> <\ Iff organization="Bundesregierung"> rson id="agu"> :name>Alfred Gusenbauer :party url="http://www.spoe.at">SPÖ Wilhelm Molterer ÖVP k/person>______________________ rty> Element Content: Child Elements XML Document with DTD staff organj\ation="Bunde^\egierung"> entity/file with ame>Wilhelm Molterer ■ taff organizatj ^n="Bundesregierung"> person id=" Comment content name> oe.at">SPÖ Alfre ^party url=l rson> on id="wmo"> e>Wilhelm Molterer fy url="http://www.oevp.at">ÖVP Comment (-node): usually not interpreted by the application Processing Instructions 1D0CTYPE st vtaff orgar persona > PI Target >auer< PI Data (no attributes!) party url="http://www.spoe.at">SPÖ rson> on id="wmo"> e>Wilhelm Molterer y url="http://www.oevp.at">ÖVP Processing Instruction: interpretation depends on application