How do different XML technologies treat XML namespace declarations?
This depends on the technology — some treat them as attributes and some treat them as namespace declarations. For example, SAX1 treats them as attributes and SAX2 can treat them as attributes or namespace declarations, depending on how the parser is configured. (For more information, see question 11.3 and the SAX2 documentation.) DOM Levels 1, 2, and 3 treat them as attributes, but DOM Levels 2 and 3 also interpret them as namespace declarations. (For more information, see question 11.5 and question 11.6.) XPath, XSLT, and XML Schemas treat them as namespaces declarations. The reason that different technologies treat these differently is that many of these technologies predate XML namespaces. Thus, newer versions of them need to worry both about XML namespaces and backwards compatibility issues.
Related Questions
- Are all the different technologies listed in Table 10 part of a pretreatment system that a facility should have in place to treat wastewater prior to discharge to a POTW?
- How do different XML technologies treat XML namespace declarations?
- What different types of waste treatment technologies are there?