cancel
Showing results for 
Search instead for 
Did you mean: 

XSLT Mapping Error for CXML message with tags

sabyasachi_mohapatra3
Participant
0 Kudos

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>

Accepted Solutions (0)

Answers (1)

Answers (1)

apu_das2
Active Contributor
0 Kudos

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