Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


unprefixed names in Perl SAX 2.0 parsers

From: Avi Kak <kak@---.------.--->
To: NULL
Date: 5/5/2005 6:46:00 AM
Hello:

This questions relates to the behavior of the Perl 
SAX 2.0 parser XML::LibXML::SAX. (This behavior is
also shown by the XML::SAX::Expat parser and, 
possibly by all other Perl SAX 2.0 parsers.)

My understanding of a default namespace is that
all unprefixed names get assigned to the default
namespace at and below the level of the element in
which the default namespace is declared.

But when I try the XML::LibXML::SAX parser on
the following document, I don't see the un-prefixed
names 'y', 'C', and 'w' getting assigned to 
the default namespace 
   http://www.mywebsite.com/NS3names/.

Avi Kak

<?xml version="1.0" encoding="iso-8859-1"?>
<NS1:A xmlns:NS1="http://www.mywebsite.com/NS1names/"
     xmlns:NS2="http://www.mywebsite.com/NS2names/"
     xmlns="http://www.mywebsite.com/NS3names/"
>
    <NS1:B NS1:x="hello" y="jello" NS2:z="mello">
        hellojellomello
    </NS1:B>
    <C w="cello"/>
</NS1:A>



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent