XML Conversion Tool

reactancexlreactancexl Posts: 105

I have a Rest call returning JSON. I convert to XML using the XML COnversion Tool. Appyling the "Edit" tool it looks like it converted successfully. When I add XML Databank, after the Conversion Tool it still contains JSON. If I add it add the Test Level then it give me an "Invalid XML input: Content is not allowed in prolog". One thing I notices the xml version is 1.1? Could that be the issue? Screenshots attached

Comments

  • reactancexlreactancexl Posts: 105

    Another attachment of the JSON to XML conversion.

  • jakubiakjakubiak Posts: 360 admin

    Since you are working with JSON and need a data bank, is there a reason you don't just use the JSON Data Bank directly instead of converting to XML and then using XML Data Bank?

  • benken_parasoftbenken_parasoft Posts: 519 ✭✭✭

    You have chain the XML Data Bank to the "XML" output of the XML Converter. However, as @jakubiak mentioned, you should be using the JSON Data Bank.

  • reactancexlreactancexl Posts: 105

    I guess I should of explained a little more, but I have a scenario where I have to compare on data With two different structures. One returns JSON and the other XML. I may have to insert into database on another scenario where I would rather insert XML vs JSON. Hope this helps. thx

Sign In or Register to comment.