Forum Discussion

omair's avatar
omair
Contributor
9 years ago

Parsing XML created using XML Generator: a simpler way

I’m trying to test a pipeline that receives incoming payload as XML and processes it using some static XML specified in the XML Generator SNAP. My problem is, I would like the XML Generator generated XML to be converted to JSON… Right now it looks like the XML Parser cannot directly serve as a downstream snap to the XML Generator snap… so I"m having to do the following to test with the generated XML:

That’s right, I need to output the XML to a file and then read the file and parse that…

Can someone please tell me if there’s an easier way of going from XML Generator → XML Parser?

2 Replies

  • Did you try Doc->Binary and XML Parser? You dont have to do all of that
    stuff in between.

    Thanks & Regards,
    Naveen

  • del's avatar
    del
    Contributor III

    [After re-reading the original post and solution, I’m removing my initial response containing an unnecessary workaround]