This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Help with Xpath expression Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Help with Xpath expression" Watch "Help with Xpath expression" New topic
Author

Help with Xpath expression

Rama Krishna Ghanta
Ranch Hand

Joined: Nov 20, 2006
Posts: 59
I need help with an XPath expression. How do I get a concatenated value of the node <p:TransactionDetailText> based on the sequence in the node <p:TransactionDetailTextSequence>? The number of <p:TransactionDetailText> nodes is not fixed. Below is the XML code I have.



Ram...
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

That depends. For a start, what's a "concatenated value"? I don't recognize that as XPath terminology.
Rama Krishna Ghanta
Ranch Hand

Joined: Nov 20, 2006
Posts: 59
By saying "concatenated value" I mean, my Xpath expression should return "AT T/P/O DEFT DID CALLED THE PERSON RESPONSIBLE FOR THE TRANSACTION AND THE CALL WAS NOT ANSWERED. CALL BACK IS SCHEDULED FOR THE SAME.". In Xpath temrinology I believe it's something like concat(p:TransactionDetailText1, p:TransactionDetailText2,........).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help with Xpath expression
 
Similar Threads
Trouble selecting nodes between two siblings
have node object, need to view it's xml?
Extracting Node using Xpath
How to get attribute values of repetitive nodes from an XML
Xpath - find node