Topic:   How to convert json to string? and convert that string to xml? and how to validate that xml with xsd?
Jul 22, 2014 02:17 3 Replies 983 Views Tomas
Prev Next
Topic Replies (3)
  1. 1
    idnkx user

    Tomas

    How to convert json to string? and convert that string to xml?
    and how to validate that xml with xsd?
    need a proper explanation and also validation logic with a validate method..
    Kindly reply

    1
    idnkx user

    Venu

    In 9.x, we have built-in services in WmPublic package (WmPublic.pub.json.*)

    1.pub.json:documnetToJSONString
    2.pub.json:jsonStreamToDocument
    3.pub.json:jsonStringToDocumnet

    convert your JSON string into document and then documentToXMLString

    use below service to validate your input xml (read built-in services guide for reference)
    1.pub.schema:createXSD
    2.pub.schema:validate


    --> If your are using 8.x or below write java service to convert json string into xml.

Leave a Reply
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect