Home » XML » XML_Util » Bug #3047
Multiple namespaces
Details
| Request #3047 | Multiple namespaces |
|---|---|
| Submitted | 2004-12-28 19:19 UTC |
| From | aaron dot hawley at uvm dot edu |
| Assigned | schst |
| Status | Closed |
| Package | XML_Util |
| PHP Version | 4.3.4 |
| OS | GNU/Linux |
| Roadmaps | (Not assigned) |
Comments
[2004-12-28 19:19 UTC] aaron dot hawley at uvm dot edu
Description:
------------
Only one namespace is allowed for an XML element. The XML Namespace standard allows for multiple namespace scopings to be made. See the W3's document on XML Namespaces here:
http://www.w3.org/TR/REC-xml-names/#scoping-defaulting
This feature is supported in the Pear package XML_Tree.
[2004-12-28 20:30 UTC] aaron dot hawley at uvm dot edu
Yes, I meant the use of multiple namespace URI declarations. You're right, there is only room for one default namespace. Specifying namespace URIs as attributes is not a pretty solution. It's a hack. Hacks should be avoided in libraries (especially those which work with well-founded standards, like XML), as they don't extend well to being used in other libraries, which one assumes is the point of something like XML_Util.