Why XML order maters?

G

G. Tarazi

Hi



I just realized that InfoPath requires the XML to be come in the exact order as the schema, for example, if the schema says:

<A>

<B>

<C>



And the xml comes ordered in a different way, like:

<B>

<A>

<C>



InfoPath will trigger an error message

Element "node" is unexpected according to content model of parent element ..



Is that normal?



Thanks
 
B

Brian Teutsch [MSFT]

InfoPath creates the XSD type "sequence", which is order-dependent. You can
add the optional element "all", but you'll have to create the scema
yourself.

Check out http://www.w3schools.com/schema/schema_complex_indicators.asp for
a good intro to these schema types.

Brian

"G. Tarazi" <Tarazi (at) LiveTechnologies.ca> wrote in message
Hi

I just realized that InfoPath requires the XML to be come in the exact order
as the schema, for example, if the schema says:
<A>
<B>
<C>

And the xml comes ordered in a different way, like:
<B>
<A>
<C>

InfoPath will trigger an error message
Element "node" is unexpected according to content model of parent element ..

Is that normal?

Thanks
 
Top