Skip to Content
0

XSLT Mapping Error for CXML message with tags

Jun 20, 2017 at 11:00 AM

24

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="******">

<Response>

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

</Response>
</cXML>

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
0

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.

Thanks,

Apu

Share
10 |10000 characters needed characters left characters exceeded