cancel
Showing results for 
Search instead for 
Did you mean: 

XPATH CONTEXT OBJECTS

Former Member
0 Kudos
37

Hi All,

Pls explain me in detail the concept of XPATH andhow to use context objects . It will be be very helpful if expained with a sample example.

Thx,

Sofia

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

Xpath: Path for any XML field

http://en.wikipedia.org/wiki/XPath

e.g.

/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

Context objects

Context Objects are variable for your XPATH.

Regards,

Prateek

Answers (2)

Answers (2)

Former Member
0 Kudos
Former Member
0 Kudos

Hi

check this

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

<i>context objects are like variables in any programming language

say we declare String A = "context objects are like variables in any programming language"

So instead of the whole string "context objects are like variables in any programming language" we can ref. it as A anywhere in the program.

Similarly Context objects acts on XPATH. Suppose we have a xpath like /a/aa/aaa/aaaa/b/bb/bbb we can define it as a BBB = /a/aa/aaa/aaaa/b/bb/bbb using a context object.</i>

<b>Thanks 2 Shabarish for the the Explanation</b>

regards

krishna

Shabarish_Nair
Active Contributor
0 Kudos

<i>

context objects are like variables in any programming language

say we declare String A = "context objects are like variables in any programming language"

So instead of the whole string "context objects are like variables in any programming language" we can ref. it as A anywhere in the program.

Similarly Context objects acts on XPATH. Suppose we have a xpath like /a/aa/aaa/aaaa/b/bb/bbb we can define it as a BBB = /a/aa/aaa/aaaa/b/bb/bbb using a context object.</i>

>>>

Hi Krishna,

i would really appreciate if you have any answers that is posted/referred from a diff. thread (like the above ), it be mentioned maybe as a line - "as per an earlier post"

you know it is odd to see one's answer as exactly the same posted by another

Hope you took this in the right way, thanks for the spirit !!!!

Former Member
0 Kudos

Sure, No problem

Regards

krishna