Are there existing JARs available to convert from JSON to XML?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not a Java, but a pure XSLT 2.0 implementation:
Have a look at the
f:json-document()from the FXSL 2.x library.Using this function it is extremely easy to incorporate JSon and use it just as… XML.
For example, one can just write the following XPath expression:
and get all children of
Studentswithsex = 'Female'Here is the complete example:
When the above transformation is applied on any XML document (ignored), the correct result is produced: