xml cleaning and attribute removing
Posted: Wed Jul 18, 2007 5:46 pm
hi!
i would like to edit an xml file in the following way:
delete certain attributes in the whole document at once
(or maybe export needed content to a new file)
the info looks like this:
<Placemark>
<description><table style='width:100%'><tr valign='top'><td align='justify'>Eresin Crown Hotel is located in Sultanahmet, the heart of Istanbul's historical part, adjacent to the tourist, business, entertainment and shopping areas.<br /><br />In order to admire Istanbul's museums and architectural wonders you do not need to stay in line and wait... In addition to the personalised quality service and comfort; we have created for you in the Eresin Crown Hotel a private museum comprising a cistern, mosaic and 49 historical and architectural extraordinary museum pieces from the Hellenistic and Byzantine time. All of these historical and architectural heritage pieces are officially registered by the archaelogical museum of Istanbul. <br /><br /><a target=_blank href='http://www.mashedhotels.com/60086045' >More Information</a></td><td style='padding-left:8px;paddding-bottom:8px; align=right><a target=_blank href='http://www.mashedhotels.com/60086045' ><img src='http://www.mashedhotels.com/img/45/60086045n.jpg' title="Eresin Crown Hotel" alt='' ></a></td></tr></table></description>
<name>Eresin Crown Hotel</name>
<LookAt>
<longitude>28.97226</longitude>
<latitude>41.00419</latitude>
<range>0</range>
<tilt>0</tilt>
<heading>3</heading>
<coordinates>28.97226,41.00419,0</coordinates>
</LookAt>
<Point>
<coordinates>28.97226,41.00419,0</coordinates>
</Point>
<address> Istanbul, Istanbul 344 00, Turkey</address>
</Placemark>
i want to get this result:
<Placemark>
<name>Eresin Crown Hotel</name>
<coordinates>28.97226,41.00419,0</coordinates>
<address> Istanbul, Istanbul 344 00, Turkey</address>
</Placemark>
i didnt find any export solution to select wich attributes should be skipped..
is it possible to do such an export in oxygen?
many thanks!
lux
i would like to edit an xml file in the following way:
delete certain attributes in the whole document at once
(or maybe export needed content to a new file)
the info looks like this:
<Placemark>
<description><table style='width:100%'><tr valign='top'><td align='justify'>Eresin Crown Hotel is located in Sultanahmet, the heart of Istanbul's historical part, adjacent to the tourist, business, entertainment and shopping areas.<br /><br />In order to admire Istanbul's museums and architectural wonders you do not need to stay in line and wait... In addition to the personalised quality service and comfort; we have created for you in the Eresin Crown Hotel a private museum comprising a cistern, mosaic and 49 historical and architectural extraordinary museum pieces from the Hellenistic and Byzantine time. All of these historical and architectural heritage pieces are officially registered by the archaelogical museum of Istanbul. <br /><br /><a target=_blank href='http://www.mashedhotels.com/60086045' >More Information</a></td><td style='padding-left:8px;paddding-bottom:8px; align=right><a target=_blank href='http://www.mashedhotels.com/60086045' ><img src='http://www.mashedhotels.com/img/45/60086045n.jpg' title="Eresin Crown Hotel" alt='' ></a></td></tr></table></description>
<name>Eresin Crown Hotel</name>
<LookAt>
<longitude>28.97226</longitude>
<latitude>41.00419</latitude>
<range>0</range>
<tilt>0</tilt>
<heading>3</heading>
<coordinates>28.97226,41.00419,0</coordinates>
</LookAt>
<Point>
<coordinates>28.97226,41.00419,0</coordinates>
</Point>
<address> Istanbul, Istanbul 344 00, Turkey</address>
</Placemark>
i want to get this result:
<Placemark>
<name>Eresin Crown Hotel</name>
<coordinates>28.97226,41.00419,0</coordinates>
<address> Istanbul, Istanbul 344 00, Turkey</address>
</Placemark>
i didnt find any export solution to select wich attributes should be skipped..
is it possible to do such an export in oxygen?
many thanks!
lux