Namespace prefix question

Tim Bray tbray at
Thu Feb 3 21:46:11 GMT 2000

At 02:27 PM 2/3/00 -0500, Hunter, David wrote:
>This is actually more of a confirmation than a question:  Can I use the same
>namespace prefix more than once in an XML document, pointing to different
>namespaces?  Like the following:
><hi:element xmlns:hi="">
>  <hi:element2 xmlns:hi=""/>
>Regardless of the fact that this is probably a bad idea, is it legal?  MSXML
>doesn't complain, and neither does the XML parser bundled with XT (XP?).

Yes, bad idea.  Yes, legal. -T.

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: or CD-ROM/ISBN 981-02-3594-1
Please note: New list subscriptions and unsubscriptions
are  now ***CLOSED*** in preparation for list transfer to OASIS.

More information about the Xml-dev mailing list