engswee / equalize-cpi-converter

CPI Converter a.k.a. FormatConversionBean for CPI
MIT License
17 stars 9 forks source link

JSON to XML - Out of spec XML generation #17

Open joaoismael opened 10 months ago

joaoismael commented 10 months ago

Hi,

When converting JSON to XML

The following JSON key-pair "first_name": " \bHazel", Gets escaped and converted into: <first_name> &#x8;Hazel</first_name>

However, this is only valid on XML 1.1. As there is no VERSION populated on the DocumentBuilder, invalid XML is rendered: <?xml version="1.0" encoding="UTF-8">

Thanks

engswee commented 10 months ago

Could you provide a sample input payload and the configuration parameters for the converter, so that I can try to reproduce the issue?