I have inherited XML… I am attempting to understand what needs to be done vs what has been done. The service I have
Gets the document
Loops over the /bizdoc/CountentParts
Branches on the PartName
then a sequence of
pub.string:bytesToString
pub.xml:xmlStringToXMLNode
pub.xml:xmlNodeToDocument
this was being used with PIDX:OrderCreate… but I have a different XML document type… XCBL:Order. My file is flattening out after xmlNodeToDocument.
Others have posted simular post discussing documentToXMLString. I would like to do this the PROPER way and have no idea what is correct. Or where to find a guiding light.
Sorry… Yes I am putting the documentTypeName in. Where the document actually came from I am not real sure. But the format it there and correct. When the data loads if I have 3 line items it only sees the LAST one.
You’re describing what your sample document looks like in the results pane after processing. But if you locate the document type itself (the one being named in xmlNodeToDocument) in the navigation panel and open it up, how does the line item element look? It should be a list, rather than a single document.
If you are expecting document to be in formate of specified input document then you have to set makeArrays to “false” in xmlNodeToDocument service. Have you set this??
As expected… the perfect questions reveals the perfect answers.
I had two document out there one that is flat and one that had the elements that needed to be in lists. I changed the documentTypeName to the document with the lists and it WORKED!!!