[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Can we treat XML elements and attributes as sets

  • To: Alan Gutierrez <alan-xml-dev@e...>
  • Subject: Re: Can we treat XML elements and attributes as sets
  • From: Mukul Gandhi <mukul_gandhi@y...>
  • Date: Sun, 21 Aug 2005 07:10:48 -0700 (PDT)
  • Cc: xml-dev@l...
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=KY+40Rx6whCuFZfQY8rg7tHp7PrpKFmubnYJQLxz8e3BLdESWGmho3H4gYZ7dFMpg4cCuLl6yjXHYW0P78P7ldbmKQsVbiURGSYtJcG5ARIIUJx++JOBMIMWDgECTA139TPRhiD6agajdFamRDA2tFXA8/HMwKalMhk51ocOjpk= ;
  • In-reply-to: <000001c5a654$7c0f0530$0115a8c0@E...>

maths sets
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 

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.