Handle XML with DOCTYPE declaration in Data mapper

Data Mapper can handle input to the mapper which includes a DOCTYPE declaration. This declaration basically signifies the name of the root and the corresponding DTD schema file associated with xml .e.g.

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE Pip3B13ShippingOrderConfirmationNotification SYSTEM "3B13_MS_V01_01_ShippingOrderConfirmationNotification.dtd">








To map the input xml which includes a DOCTYPE declaration you need to use the textual rule by stripping off the initial reference to the schema from the xPath.

For Example:

If the xPath is :

$Input_[SchemaName]/w:pip/w:serviceContent then change it to /w:pip/w:serviceContent


The above step is required because the document function in xsl which holds the input schema xml doesn’t works properly when input xml has DOCTYPE declaration.

Have more questions? Submit a request


Article is closed for comments.