I have the following segment of XML that I'd like to strip attributes from and output as a new XML using Ximpleware/VTD-XML. Source:
<top_level>
<Item id="1">
<other_data>
Target:
<top_level>
<Item>
<other_data>
I understand I can use removeAttribute(int attrNameIndex) to do this, however I'm struggling to find the appropriate method to get the attrNameIndex.