Forum Discussion
PIMData.txt (1.8 KB)
hi @bojanvelevski i was trying to frame that structure will share the sample input and xsd pls could u help pls
samplerecords.json (262 Bytes)
Please convert PIMData.txt to PIMData.xsd as the template is in that format
Please also find output expected xml in txt format
outputxml.txt (3.2 KB)
Hi rashmi,
Good day, instead of using an xml generator snap have you tried the xml formatter? I don’t know if this is your required output but xml formatter accepts an outgoing format as XSD
XML output using PIMData.xsd
Updates:
,
I’m not that familliar with XSD so I manipulate the sample input using a mapper snap, attached poc pipeline
canvas 15_2022_12_03.slp (16.8 KB)
Thanks,
EmEm
Sorry, it’s a bit awkward. The Snap will save input documents as they are received and then write them to a file when the pipeline finishes. So, you need to start up the ultra task, send a few requests so that they are recorded by the snap, and then disable the task so that the documents can be saved to the file. Now that the file has been written, validations should be able to read it and produce data. Once you get a good amount of saved documents, you can put the snap in ‘Replay-Only’ mode so that the next time you enable the ultra task, the already saved documents are not overwritten.