cancel
Showing results for 
Search instead for 
Did you mean: 

what is xpath?

0 Kudos

what is Xpath? When does one use it and how is it used/configured?

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Thank you all for your valuable feedback

Former Member
0 Kudos

You might also find this helpful:

Former Member
0 Kudos

Hi,

X-Path is used to Determine the Receivers Based on the condition..

Have a Look at the Following Doc's

http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm

/people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object

Receiver Det- Xpath:

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers

XPATH in Interfce Det:

/people/suraj.sr/blog/2006/01/05/multiple-inbound-interfaces-within-a-service

Regards

Seshagiri

Former Member
0 Kudos

Hi,

there are many links have already shared in about posts about XPATH, just extending to it, find here with you some more info,

XPATH is a Web standard for navigating in XML documents. XPATH location paths are used to extract information from the structure of an XML document, such as the author or the page number. This information is then used for XML indexing.

An XPATH location path comprises a base path and a value path.

· The base path describes a node set in the XML document.

· The value path describes the values that you want to determine from this node set.

Customise your 'XPATH' Expressions in Receiver Determination

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers

http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/92/af463c36a30319e10000000a114084/frameset.htm

/people/daniel.graversen/blog/2006/12/29/hack-using-xpath-in-xi-message-mappings

Illustration of Enhanced Receiver Determination - SP16

/people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16

Hack: Using XPATH in XI Message Mappings

/people/daniel.graversen/blog/2006/12/29/hack-using-xpath-in-xi-message-mappings

XPath in the adapter framework

The package javax.xml.xpath was introduced with Java 5 (1.5), thus it is not available in XI which runs Java 1.4.2. There are (at least) a couple of ways to use XPath in Java 1.4:

1. Use a third-party library that supports XPath, for instance Xalan-J from Apache.

2. Embed your XPath expression in an XSLT transformation, execute the transformation using classes from the javax.xml.tranform... packages (which are part 1.4) and extract the result.

1. Does not work. The XI has following restriction: Only one XML parser exist in the adapter framework. If I change the parser for my adapter the change will affect all adapters.

I gues the class loader for the adapter framework must be implemented in an other way. Each adapter should have its own class loader.

2. This could be a way. Currently I implemented the customer requirement with the SAP SAX parser.

xpath functions in xslt mapping

/people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping

Difference between context object and x-path:

http://help.sap.com/saphelp_nw04/helpdata/en/d6/e44fcf98baa24a9686a7643a33f26f/frameset.htm

/people/prasadbabu.nemalikanti3/blog/2006/09/20/receiver-determination-based-on-the-payload-of-input-dataextended-xpathcontext-object

Receiver Det- Xpath:

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination

/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers

XPATH in Interfce Det:

/people/suraj.sr/blog/2006/01/05/multiple-inbound-interfaces-within-a-service

Former Member
0 Kudos

Hi,

Xpath:

XPath is a language for addressing parts of an XML document, designed to be used by both XSLT and XPointer.

XPATH is a Web standard for navigating in XML documents. XPATH location paths are used to extract information from the structure of an XML document, such as the author or the page number. This information is then used for XML indexing.

Xpath can be used in XSLT mapping also u can use in conditional receiver determination.

Refer the below link for more infor:

http://www.w3schools.com/xpath/default.asp

http://www.w3.org/TR/xpath

XPath to show the path (Multiple Receivers)

/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers

xpath functions in xslt mapping

/people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping

/people/daniel.graversen/blog/2006/12/29/hack-using-xpath-in-xi-message-mappings

http://help.sap.com/saphelp_nw04/helpdata/en/92/af463c36a30319e10000000a114084/frameset.htm

Thnx

Chirag