on 01-17-2019 12:02 PM
Hi Experts,
My Scenario is from cXML file to idoc to mail. i.e 1st Mapping: cxML -> ORDERS IDOC, 2nd Mapping: ORDERS idoc- > EMail . I have written java code to attach the idoc as email attachment and add some text in body. IDOC is getting attached and even body is visible in email but the problem in with the content of IDOC. New Line characters "CR LF" are getting added in between Nodes names such as <E1EDP01 SE CR LF
GMENT="1"><QUALF>2</QUALF>
Likewise CR LF is getting added at some random places.Thus the malformed xml is getting attached in email.I have added code in java mapping to remove CR LF but it is removing all CR LF from File except the one which is in between the Node names.
PFA xml for reference. Any pointers will be helpful.
Thanks,
Sonam Ramsinghani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manoj,
yes i agree CR LF are hexadecimal characters and they should be present in xml document for adding new line. But they are coming in between tag names so we are getting error at the target side that "the xml document is malformed and there is some issue with CR LF" as its splitting the xml structure at target side they are having problems.
Thanks,
Sonam Ramsinghani
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.