OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] Can we treat XML elements and attributes as sets

[ Lists Home | Date Index | Thread Index ]

* Michael Kay <mike@saxonica.com> [2005-08-21 08:10]:
> > Thanks Mike for clarification, and more information..
> > I did'nt knew namespace URIs could be null.
> The namespace URI property of an element or attribute node can be
> null, meaning that the element or attribute is "not in a
> namespace". What I'm saying is that it's often more convenient to
> regard such elements/attributes as being in a namespace, a
> namespace with no name, and Elliotte's model which you quoted
> seems to treat them that way.

    In SAX, no namespace, or the default namespace, is represented
    by the empty string. Closer to the set way of looking at things.

    In DOM no namepsace is represented by null.

    (Another example of how Namespaces can baffle a new user.)

Alan Gutierrez - alan@engrm.com
    - http://engrm.com/blogometer/index.html
    - http://engrm.com/blogometer/rss.2.0.xml


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS