Hi,
I have set up a service to create a document from a xml string:
pub.xml:xmlStringToXMLNode
pub.xml:xmlNodeToDocument
I encounter a problem on a document list in the document, if the string contain only one occurence of the list the final document countain a document not a documentlist
My document is like this:
Document
–string
–string
–DocumentList
----string
----string
But on the run if the string contain only one occurence of the list the document is like below:
Document
–string
–string
–Document
----string
----string
It cause some problem later because i need to do a loop on the Document List which is not consider as a document list
Is there a way to force xmlNodeToDocument to create the document with the same structure?
Or do i have to create a java service to check for the documentType?
Thanks for your concerns.