Altova Mailing List Archives
>xml-dev Archive Home
>Recent entries
[Thread Prev]
>Thread Next - RE: [xml-dev] Can we treat XML elements and attributes as sets
Re: [xml-dev] Can we treat XML elements and attributes as sets
To: Alan Gutierrez <alan-xml-dev@-----.--->
Date: 8/21/2005 2:11:00 PM
I am not doubtful about the usefulness of namespaces. They are immensely useful.. They help us distinuish between different XML applications, as Elliotte pointed. Thanks for telling about usage of namespaces in SAX and DOM. The discussion topic I started was, "can we treat XML elements and attributes as sets" still eludes me. I think they should be treated as sets, as we can perform useful mathematical operations on XML documents using set operators. Mike said, we should treat sets in the context of XML and related specs, as unordered. IMHO, that an over simplification of the issues(this will have 1-to-1 mapping of XML sets to maths sets. but this I think will miss the requirement of ordered nature of XML elements). The XML Schema can define elements, with order, as well as unordered (using the xs:sequence construct). Which would I think imply that maintaining and not maintaining order are both important in XML? Do I make any sense? Regards, Mukul --- Alan Gutierrez <alan-xml-dev@e...> wrote: > > 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@e... > - http://engrm.com/blogometer/index.html > - http://engrm.com/blogometer/rss.2.0.xml __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
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.

