Hi,

I have an xml document which is generated from a dataset. I want to add an element to the existing structure, but I am having problems. Here is what I get:

Code:
<?xml version="1.0" standalone="yes"?>
<voyage_data >
  <voyage >
    <container />
  </voyage>
  <container nonrevenue="false" />
  <container nonrevenue="false" />
  <container nonrevenue="false" />
  <container nonrevenue="false" />
  <container nonrevenue="false" />
  <container nonrevenue="false" />
  <container nonrevenue="false" />
 
</voyage_data>
but here is what I want
Code:
<?xml version="1.0" standalone="yes"?>
<voyage_data >
  <voyage >
      <container nonrevenue="false" />
      <container nonrevenue="false" />
      <container nonrevenue="false" />
      <container nonrevenue="false" />
      <container nonrevenue="false" />
      <container nonrevenue="false" />
      <container nonrevenue="false" />
  </voyage>
</voyage_data>
I haven't been able to get this right. Any suggestions would be greatly appreciated.

Thanks, petela