Rešenje sam našao u xml. Imao sam veliku pomoć na tom forumu.
code ide ovako:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="2.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/ | @* | node()">
<xsl:if test="name(.)!='IDOsiguranika' or name(..)!='Osiguranik'">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Možete brisati atribut po atribut. Koristio sam xslt u altova xmlspy