in an XML file that uses hyphenated names for XML element Names - i need to convert the xml to JSON so that our webservice project(resteasy) understands the json. i have 1000s of these xml files - i need to find a quick way to automate these conversions.
what library can i use to accomplish this - i tried suggestions here but it didnot help
any suggestions?
example:
input:
<card-transaction xmlns="http://ws.google.com">
<card-transaction-type>${card-transaction-type}</card-transaction-type>
<merchant-transaction-id>${merchant-transaction-id}</merchant-transaction-id>
</card-transaction>
Output:
{
"merchantTransactionId": "${merchantTransactionId}",
"cardTransactionType": "${cardTransactionType}"
}