Hi All,
Hope that u can help me with this problem..
I have a XML document that i need to produce with empty tags ie.
<Status/>.. i can do it by using the code in the extended rules as
below :
writeBlock("<Status/>"
writeBlock("^0D^0A"
empty(#Status);
it is working fine as long as there is data before the Status tag..
sample output :
<Route>
<Sender>
<LocationID>1234</LocationID>
</Sender>
<Receiver>
<LocationID>5566</LocationID>
</Receiver>
</Route>
<GoodsShipped>
<test>123</test>
<Status/>
<OrderNo>21104731</OrderNo>
</GoodsShipped>
but if i don't have data in the tag before the Status tag, it will
end up appearing like this :
<Route>
<Sender>
<LocationID>1234</LocationID>
</Sender>
<Receiver>
<LocationID>5566</LocationID>
</Receiver>
</Route>
<Status/> <--------- this is wrong...
<GoodsShipped>
<--------- shd be here !!!!
<OrderNo>21104731</OrderNo>
</GoodsShipped>
how do i get it to be inside the GoodsShipped tag ????
Thanks for your help...
Hope that u can help me with this problem..
I have a XML document that i need to produce with empty tags ie.
<Status/>.. i can do it by using the code in the extended rules as
below :
writeBlock("<Status/>"
writeBlock("^0D^0A"
empty(#Status);
it is working fine as long as there is data before the Status tag..
sample output :
<Route>
<Sender>
<LocationID>1234</LocationID>
</Sender>
<Receiver>
<LocationID>5566</LocationID>
</Receiver>
</Route>
<GoodsShipped>
<test>123</test>
<Status/>
<OrderNo>21104731</OrderNo>
</GoodsShipped>
but if i don't have data in the tag before the Status tag, it will
end up appearing like this :
<Route>
<Sender>
<LocationID>1234</LocationID>
</Sender>
<Receiver>
<LocationID>5566</LocationID>
</Receiver>
</Route>
<Status/> <--------- this is wrong...
<GoodsShipped>
<--------- shd be here !!!!
<OrderNo>21104731</OrderNo>
</GoodsShipped>
how do i get it to be inside the GoodsShipped tag ????
Thanks for your help...