Thanks for reply!
First thing I tried was changing the namespace prefix as Mark explained and map at parent level. It appeared my problem solved. But it failed while validating the XML (unknown reason probably namespace or prefix).
Then tried by replacing the prefix in xmlstring and convert to document. I guess namespace did not allow me.
Finally, mapped element by element. It looks fine and works well. BUT…
As schema element defined nillable some times it we do not have data it comes as @xsi:nil etc., I can not really map exactly to the target document. OR bottom line… After mapping those two documents do not look alike. Only the elements which has data look a like.
I guess, as Mark adviced (which was my first attempt before posting here), I need to go back and check the cause for failing the validation.
i.e
pub.xml:documentToXMLString
pub.xml:xmlStringToXMLNode
pub.xml:XMLNodeToDocument
then map
Once again my intention is to map Doc1 to Doc21 in the following…
Doc1
Doc1
fld1
fld2
Doc2
Doc2
Doc21
fld1
fld2
Doc22
fld22
fld23
As they are two different schemas, we have two different documents and two different namespaces with their own prefixs… One of them part of another; so, I need to map that part exactly then add other elements data to complete the mapping and proceed further.
I appreciate your reponses.
Thanks,
Gany
#webMethods#Flow-and-Java-services#Integration-Server-and-ESB