Te optional comes cause you could have a sample like this:
Code:
<?xml version="1.0" encoding="UTF-8" ?>
<Albums>
<Album ref="CD142" category="Folk">
<title>Boil The Breakfast Early</title>
<artist>The Chieftains</artist>
</Album>
<Album ref="CD720" category="Pop">
<title>Come On Over</title>
<artist>Shania Twain</artist>
</Album>
<Album ref="CD024" category="Country">
<title>Red Dirt Girl</title>
<artist>Emmylou Harris</artist>
</Album>
</Albums>
Code:
$=RemoveXMLattr($xml, "Albums/Album", "category", 0)
In wich case you have to indicate the att id to erase it. 0 should remove category="Folk" in this case.
Maybe would be better to search for the attr, get the id and then arease it if you dont now it.
_________________________
Life is fine.