Skip to Content
avatar image
Former Member

XSLT Mapping Error for CXML message with tags

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>

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • 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.

    Thanks,

    Apu

    Add comment
    10|10000 characters needed characters exceeded