hello all,
This is my xml file:
<?xml version="1.0"?>
<!DOCTYPE book SYSTEM "bookgram.dtd">
<book>
<title>Professional
Java Programming</title>
<author>Brett Spell</author>
<publisher>Wrox Press</publisher>
<tableOfContents showPageNumbers="Yes">
<tocEntry>Printing</tocEntry>
<tocEntry>Cut and Paste</tocEntry>
<tocEntry>Drag and Drop</tocEntry>
</tableOfContents>
</book>
I would like to retrieve the value of showpagenumbers
I have this xpath statement but it does not do it:
("/book/tableOfContents[@showPageNumbers]");
I am using XPath API, the above should return an XObject, I then do XObject.toString(), but that does not work.
Please let me know how I can do this.
Thanks,
Rob