Posted: Tue Mar 15, 2005 10:02 am Post subject: order of XML elements
Partisan
Joined: 07 Aug 2001 Posts: 386
A program expects the input as follow:
<ROOT>
<AA>
<11>... </11>
:
<99> .. </99>
</AA>
<BB>
<XX>... </XX>
:
<ZZ> .. </ZZ>
</BB>
<CC>
<MM>... </MM>
:
<RR> .. </RR>
</CC>
</ROOT>
I am using WBI MB to produce the XML message to input to the program and the output looks like:
<ROOT>
<AA>
<11>... </11>
:
<99> .. </99>
</AA>
<CC>
<MM>... </MM>
:
<RR> .. </RR>
</CC>
<BB>
<XX>... </XX>
:
<ZZ> .. </ZZ>
</BB>
</ROOT>
The sequence of the elements is AA CC BB instead of AA BB CC expected by the program.
I am a beginner to XML. My questions are
1. Within XML specification, does the sequence of the XML element within the same level matters. If it does not not, then the program should accept the output from the broker with no complain.
2. If it does matters, how do I ensure that the broker will output the XML in the right order. Should the order be in exactly the sequence of the ESQL coded. Is there any way that can affect the order that the MB output the XML elements ?
Posted: Tue Mar 15, 2005 10:10 am Post subject: Re: order of XML elements
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
WBI_user wrote:
1. Within XML specification, does the sequence of the XML element within the same level matters. If it does not not, then the program should accept the output from the broker with no complain.
It depends.
WBI_user wrote:
Should the order be in exactly the sequence of the ESQL coded. Is there any way that can affect the order that the MB output the XML elements ?
What does the ESQL documentation say? _________________ I am *not* the model of the modern major general.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum