Automatic transformation of XML namespaces/Analyzing XML

From Wikiversity
Jump to: navigation, search

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:

  1. the root element node (Then root element namespace is associated with the primary node.);
  2. element nodes whose parent has a different namespace than their parent (Then the element's namespace is associated with the primary node.);
  3. element nodes which have a namespaced attribute of a different namespace than the element itself. (Then attribute namespace is associated with the primary node.)