aspose file tools*
The moose likes I/O and Streams and the fly likes split an xml string using xpath? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "split an xml string using xpath?" Watch "split an xml string using xpath?" New topic

split an xml string using xpath?

Mark Lybarger
Ranch Hand

Joined: Dec 19, 2003
Posts: 72
i have a need to split up an xml string. i have string such as (simplified example):


my app needs to process the item(s) in that xml. so i'd like to get a list of the item's as xml, such as: <item><name>foo</name></item>. if i use xpath on the nodes (jaxen), i get a nodelist back. can i use this nodelist to get the xml i need?
I agree. Here's the link:
subject: split an xml string using xpath?
Similar Threads
Urgent Help! How to get attributes value using xalan parser
WSDL2Java Question
Parsing Error
Can't pin down this NullPointerException :(
help with web service to display xml file contents using netbeans