Community discussion forum

Using XPath to get XML chunk

  • 9 months ago
    Hi I'm new to XPath and would like to know using XPath and Java if can we get the XML chunks (ie along with markups/tags) instead of just values enclosed by tags? Consider the sample XML: Everyday Italian Giada De Laurentiis 2005 30.00 Harry Potter J K. Rowling 2005 29.99 From the sample XML above , using XPath, how can I get the second book element as shown below. Harry Potter J K. Rowling 2005 29.99
    Post was edited on 23/02/2009 18:18:44 Report abuse
  • 9 months ago
    Couldnt post the XML as is. Ignore the XML example.

Post a reply

Enter your message below

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback