Skip to Content

XSLT Mapping Error for CXML message with tags

Jun 20, 2017 at 11:00 AM


avatar image
Former Member

Hello Experts

We have a XSLT mapping Error for cXML message where <!DOCTYPE> tags are coming . Please advise how to remove these <!DOCTYPE> tags from the cXML message.Below is the sample CXML message with DOCTYPE tags

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cXML SYSTEM "http://****.org/schemas/cXML/****/cXML.dtd">

<cXML timestamp="2015-06-15T02:37:52-07:00" payloadID="******">


<Status code="200" text="OK"></Status>


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Jun 20, 2017 at 11:23 AM

Simple put one java mapping in the OM before your XSLT mapping.

In Java mapping split

<!DOCTYPE cXML SYSTEM "http://****.org/schemas/cXML/****/cXML.dtd"> portion from inputstream and replace with blank.

If your XSLT mapping is expecting the format only without this then it should work properly.

Anyway, You can handle the same in XSLT mapping as well I guess.



10 |10000 characters needed characters left characters exceeded