The XPathMultiTypeXmlReader component handles XML messages.
DOStringReader=com.sybase.esp.adapter.xml.xpath.XPathMultiTypeXmlReader
This reader uses XPathXmlStreamReader, depending on the message type provided in XML. Once the message type is obtained, this component uses the standard XPathXmlStreamReader component to handle incoming messages. All configuration property files for the XPathXmlStreamReader component are stored in separate files called parsing rules. The list of properties in parsing rules are similar to XPathXmlStreamReader except that they require prefix parsing rules.
Property | Description |
---|---|
MSGTypeXPath | (Required) Location of the message type in the XML message expressed as XPath. This can also be provided as an attribute of the element. |
MSGTypeN | (Required) Name of message type. One of the message type names must match the value obtained by MSGTypeXPath from XML message. |
MSGTypeN.ParsingRules | (Required) Name of the file where XPathXmlStreamReader stores its properties. |
BadRecordLoggerName | (Optional) The name of the logger responsible for
writing bad records. The behavior depends on implementation. If
you provide a name, also provide the implementation class. If
you leave this property blank, the adapter only warns about bad
records, and the original message is lost.
<BadRecordLoggerName>.ClassName - Logger implementation. |