XML Advanced-from w3schools.com

作者:袖梨 2022-07-02
XML Namespaces

--------------------------------------------------------------------------------
XML Namespaces provide a method to avoid element name conflicts.
--------------------------------------------------------------------------------
Name Conflicts
Since element names in XML are not fixed, very often a name conflict will occur when two different documents use the same names describing two different types of elements.
This XML document carries information in a table:
Apples Bananas


This XML document carries information about a table (a piece of furniture):


If these two XML documents were added together, there would be an element name conflict because both documents contain a
Apples Bananas


This XML document carries information about a piece of furniture:

相关文章

精彩推荐