cancel
Showing results for 
Search instead for 
Did you mean: 

xpath

Former Member
0 Kudos

hi expects,

what is xpath?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

rohit,

to traverse in XML document we use XPATH . to go particular element in XML we can use XAPTH expressions .

Thanks

Sreeram

justin_santhanam
Active Contributor
0 Kudos

Rohit,

In addition to the above friends reply, see for example my structure looks like below

<Root>

-


<Sub-Root>

-


<Sub-Root1>

-


<Sub-Root2>

-


<Sub-Root3>

-


<Sub-Root4>

-


<Sub-Root5>

-


<Sub-Root6>

-


<Element1>

-


<b><Element2></b> <b>Element2Context</b>

-


<Element3>

If you see the above structure, while defining XPATH expression u have the expression as all the nodes. In oder to avoid that we can define context object at particular node and can refer in XPATH.

Hope it helps!!!

Best regards,

raj.

Former Member
0 Kudos

Rohit,

In standard Web standard for navigating in XML documents we use xpath. So in XI for navigating into a path we use this.

Check this help for more understanding on this:

http://help.sap.com/saphelp_nw04/helpdata/en/01/c45e05e6b14571b1c797f053fdff2b/content.htm

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

In XI we can use XPath in many ways. See this weblogs for some examples:

/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

/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

---Satish