Hi,
I do have few issues in converting the JSON to XML using Badgerfish
convention.
ยท Currently the Badgerfish convention is not supporting the *XML
Mixed Content*. (Element and text nodes). In order to support mixed content
there are few suggestions available. One common solution is to implement it
as a JSON array.
- So the following XML script can be converted to JSON as follows.
*<alice>bob*
*<charlie>david</charlie>edgar*
*</alice>*
* *
The relevant JSON string is as follows
{ "alice": [ { "$": "bob" },
{ "charlie": { "$": "david" } },
{ "$": "edgar" }
]
}
The Badgerfish parser that I've implemented is capable of supporting
the above conversion.
Is that OK to use this procedure.
Thanks,
Kasun