Automatic transformation of XML namespaces/Analyzing XML
Primary nodes play crucial role in analyzing XML, which nodes to feed to the scripts which transform or validate XML.
The primary nodes of an XML document are:
- the root element node (Then root element namespace is associated with the primary node.);
- element nodes whose parent has a different namespace than their parent (Then the element's namespace is associated with the primary node.);
- element nodes which have a namespaced attribute of a different namespace than the element itself. (Then attribute namespace is associated with the primary node.)