MySQL Forums
Forum List  »  Connector/Node.js

Extract a Node Value with XPath?
Posted by: snoofy
Date: August 25, 2007 05:04AM

hi all,

I wonder if anyone know how to parse and extract only the Node Value of below

[root@test]# java XPathReaderTest '/Test/configItems//configItem[@name="Operating System"]/configItem[@name="Version"]' testfile.xml
Node Name-->configItem , Node Value-->5.2.3790

i.e. how should I enhance the XPath expressions to only get the Node Value?


Edited 2 time(s). Last edit at 08/25/2007 05:07AM by snoofy .

Options: ReplyQuote

Written By
Extract a Node Value with XPath?
August 25, 2007 05:04AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.