Hi all,
To me, this seems pretty normal. Indeed, let’s consider on the two sides (xml and wM document) what the possibilities are :
In webMethods, a string field in a document can be :
- not present
- present and null
- present and empty
- present and not null and not empty
which makes 4 different cases.
On the xml side, a string field can be :
- not present
- present and empty
- present and not empty
which makes 3 different cases.
So for sure, documentToXML and XMLToDocument can not be exactly reverse.
I guess webMethods made the choice to say that :
present and null in wM -> present and empty in XML
present and empty in wM -> present and empty in XML
and on the other way round
present and empty in XML -> present and empty in wM
which explains what you have as a behavior.
Sorry, but I think even theoritically, there is no solution to your problem 
Best regards,
Chtig
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods