wm.tn.doc:recognize problem with EDI document

We receive a EDI document that contains a & character. The wm.tn.doc:recognize does cut the EDI document before the first occurrence of this characters.

If the document does not contains this character the process goes smoothly. We do not have control over the EDI document and the customer does not have the ability to remove, cast or convert the character to something else.

Can someone help.



When you get the EDI in, does it come first as a string? If so, before you convert the string to an EDI Doc, you can manipulate the string to remove the &, or replace it with a less problematic character

Where in the EDI string is the & character appearing? What are the delimiters used for the document?

Is the EDI string initially embedded within XML?