Lists Home |
Date 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
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: