I've attached some sample data and script. My output is:
$VAR1 = '<opt>
<anon>
<ID>006.1</ID>
<Nodule>
<Label>006_102</Label>
<Marking>
<Map>
<x>463</x>
<y>241</y>
</Map>
<UID>1.840.1.18710.2.3.39399
<included>TRUE</included>
<position>750.0</position>
</Marking>
</Nodule>
<Version>3.12</Version>
</anon>
</opt>
';
I now know it does this ($VAR1 and anon) because I'm dumping an array and that's how the data is stored when it's slurped up by XMLin. I'm interested in finding a way to basically read in xml, allow me to parse it, and then dump out the xml into a proper xml format with my new modifications. Do you have any examples or know of any packages?
Main Topics
Browse All Topics





by: David_BothamPosted on 2009-11-04 at 06:04:14ID: 25739359
mock5c,
Can you post the code giving you problems? And, the data helps too.