cancel
Showing results for 
Search instead for 
Did you mean: 

Using XPathMatcher (sapxmltoolkit) in a Module

Former Member
0 Kudos

Hi,

I'm writing an XI module that extracts a certain value from the XML Payload of a message and uses it for further processing.

The value is determined by an XPath that can be configured in the module's configuration.

I'm using the class <i>XPathMatcher</i> to evaluate the XPath. Unfortunately there is very little documentation on that API. It works as long as the XML message has no namespace associated. As soon as there is a <i>xmlns=...</i> in the root element, the <i>XPathMatcher.process()</i> method will not deliver any results.

Does anybody have experience with that class of the sapxmltoolkit or knows where to find more information (except for what's available in the <a href="http://help.sap.com/saphelp_webas630/helpdata/en/b6/8097f5a5edea4f8dfc87ac87082b22/frameset.htm">SAP Online Help</a>)

your help is appreciated,

Peter

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184154
Active Contributor
0 Kudos

Some months ago I asked SAP where I could find missing doc for SAPXMLToolkit, and the answer was: you're <i>allowed</i> to use only what's documented... meaning other stuff is not guaranteed to remain the same in the future...

That's when I decided to use

<a href="http://xerces.apache.org/xerces-j/">Apache Xerces</a>

You'll just have to include Xerces .jar files as external libs in your prj and they'll deploy along with your module.

Alex