0

i'm useing the XML task in ANT to copy siome XML stuff.

<xmltask source="test.xml">
            <copy path="starttag/Checktag[@id='123']" buffer="test"/>

        </xmltask>

This part of code copies everything which is between the Checktag with the id 123. My only problem now is that i really don't know how to save the buffer test to a new xml file.

merlinsson
  • 65
  • 8

1 Answers1

0

Directly from the XMLTask documentation:

<xmltask sourcebuffer="servlet" output="servlet.xml">

reads from the previously populated buffer servlet and writes to [servlet.xml]

Chad Nouis
  • 6,861
  • 1
  • 27
  • 28