C中是否有可重新排列XML要素的APIC?
Sample input file will looks like below:
<A> a</A>
<B>b</B>
<C>
<a1> a1</a1>
<a2>a2</a2>
D
I am getting the input like above but i want to format the xml like below ( Where i will specify the What is order in which the xml elements should be present in the output in xslt).
<A> a</A>
<B>b</B>
<D>D</D>
<C>
<a1> a1</a1>
<a2>a2</a2>
Are there any API in C which can do this? or is there any better way of ordering the XML elements.?
thanks, Madhu