<?XML>value
value<?XML>field names and values
So that is XML inside XML. When I use XML to json conversion policy, it only converts the main XML. The sub XML comes out in XML form in json value in key- value format.
{
Field1: value
Field2 : <?XML>_____
}
How should I deal with this.
This XML is dramatically different from the first post … this XML appears well formed. As I look at the field .. I see that it contains “CDATA” … is this the area you are looking at? The idea behind XML CDATA (Character Data) is that the content of the field … can contain anything … including characters that would not normally be allowed in XML. I would imagine that a parser of XML to JSON would create a “String” JSON field that contains the content as-is. If that string is itself XML, then it would be up to your own application logic to apply an XML to JSON processor explicitly against that field.