on 01-25-2008 10:45 AM
Hi everybody,
I am looking for the xpath expression
"Give back the titel for book number 222"
<?xml version="1.0" encoding="iso-8859-1"?>
<books>
<book>
<number>1111</number>
<titel>Das Silmarillion</titel>
</book>
<book>
<number>222</number>
<titel>Die Belgariad-Saga</titel>
</book>
<book>
<number>333</number>
<titel>Harry Potter</titel>
</book>
</books>
Thanks, Regards
Mario
Hi,
got it:
/books/book/titel[preceding-sibling::number='222']
Thank you all
Regards Mario
Edited by: Mario Müller on Jan 25, 2008 6:06 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
/books/book[2] /titel
or
/books/book[last()-1] /titel
or
/books/book/titel[number='222']
Regards.
Jeet.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mario Müller
As per my understanding you are looking for the usage of XPATH Expression to return back the node Book values having number 222.
Well that you need to handle it in mapping only.
If you are passing all the three nodes as seperatly then you could use XPATh expression to reidrect it absed on book number.
Please rectify me if I have interpreted in different way.
Thnaks
Swarup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Just have look if this could help you
/people/daniel.graversen/blog/2006/12/29/hack-using-xpath-in-xi-message-mappings
Probably this will give you some hint. I think you already have most of the settings as it should have to be.
/people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16
Thanks
Swarup
Edited by: Swarup Sawant on Jan 25, 2008 11:56 AM
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.