Whats the quickest way to convert a doc like:
<customermodel:Customer>
<creditCards>
<cardNumber>@0</cardNumber>
<provider>@HSBC</provider>
<xsi:type>@customermodel:CreditCard</xsi:type>
23242552
</creditCards>
.
.
So that the elements with @ become attributes for the parent element.
ie get to:
<customermodel:Customer>
<creditCards cardNumber="0" provider="HSBC" xsi-type="customermodel:CreditCard>
232323232
</creditCards>
.
.
Using a dom? or Sax parser or manually? and i can move the @ into the <>'s