Hi Kasun,
I think its ok to use the array technique.
-- Nandika
On 7/11/07, Kasun Indrasiri <[EMAIL PROTECTED]> wrote:
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
--
[EMAIL PROTECTED]
WSO2 Inc: http://www.wso2.com