Go to previous pageGo to next page

1.3.1. Example XML Document

Example      XML DocumentExample XML Document

The first line in the document – the XML declaration "<?xml version="1.0" encoding="ISO-8859-1"?>" – defines the XML version and the character encoding used in the document. In this case the document conforms to the 1.0 specification of XML and uses the ISO-8859-1 (Latin-1/West European) termcharacter set.

The next line describes the root element of the document:

Root ElementRoot Element

The next four lines describe child elements (first_name, last_name, street, number, and city) of the root :

Child ElementsChild Elements

And finally the last line defines the end of the root element:

End of the Root ElementEnd of the Root Element

Can you detect from this example that the XML document contains an address? Don't you agree that XML is pretty self-descriptive?



Go to previous page
Go to next page