<?xml version="1.0" encoding="ISO-8859-1"?> <rootelement> <childelement1 attribute1="An attribute value.">An element value.</childelement1> <childelement2>An element value.</childelement2> <childelement3/> <childelement4> An element value. <childelement4childchildelement1> An element value. </childelement4childchildelement1> <childelement4childchildelement2> An element value. </childelement4childchildelement2> </childelement4> </rootelement>
The first line in an XML document defines the version and character encoding used.
<?xml version="1.0" encoding="ISO-8859-1"?>
<rootelement>
<childelement1 attribute1="An attribute value.">An element value.</childelement1> <childelement2>An element value.</childelement2> <childelement3/> <childelement4> An element value. <childelement4childchildelement1> An element value. </childelement4childchildelement1> <childelement4childchildelement2> An element value. </childelement4childchildelement2> </childelement4>
</rootelement>