
|
The document element (here re:root) is the very first (and essentially a virtual) element of the XML tree. Document element is the formal name for the start element and is a type of XML node; it's more commonly known as the 'root element' or 'root node'. The root element can have other XML node types besides the document element, e.g. comments and processing instructions. XML Tag<re:root xmlns:re='http://reality.dataactive.com'> ... </re:root> DTD<!ELEMENT re:root ANY> <!ATTLIST re:root xmlns:re CDATA #FIXED "http://reality.dataactive.com"> Reference examplesChildrenAll Attributesxmlns xmlnsA xmlns attribute is a namespace value, this a “way of defining each element type and attribute name in an XML document unmistakably (through associations with a specific URIs) so that two or more XML structures may be used in that document without creating a conflict”. For more information on namspaces see: Official namespace specification http://www.w3.org/TR/REC-xml-names/ Namespace FAQ http://www.rpbourret.com/xml/NamespacesFAQ.htm |