PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » XML » XML_Util » Bug #3047

Multiple namespaces

Details

Request #3047Multiple namespaces
Submitted2004-12-28 19:19 UTC
Fromaaron dot hawley at uvm dot edu
Assignedschst
StatusClosed
PackageXML_Util
PHP Version4.3.4
OSGNU/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.