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] How to compare two DOM Node and XML file?

[ Lists Home | Date Index | Thread Index ]


> I think the sequence of xml elements is decided by schema. If schema
> doesn't define the sequence, the sequence of elements is NOT important?
> Is it right?

No. element order is always important (at the xml level) even if it is
not imporatent to your application. Schema (XSD and Relax) can say
whether child elements are allowed just in a fixed order, or in any
order, but they have no mechanism of saying in the case that any order
is allowed whether or not the order matters. Usually when any order is
allowed, the order _does_ matter. (Think about constructing a paragraph
of text, you can use any inline construct in any order, but if you
re-arrange the order of the words in a paragraph, the meaning usually
changes).

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________




 

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

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