aspose file tools
The moose likes XML and Related Technologies and the fly likes Manipulate DOM using XPath Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "Manipulate DOM using XPath" Watch "Manipulate DOM using XPath" New topic
Author

Manipulate DOM using XPath

aswin pal
Greenhorn

Joined: Jan 23, 2010
Posts: 9
Newbie help..

I was searching for an example that shows this:

1. Use a Document object.

2. Use XPath to select a node (element or attribute) from the Document object.

3. Change its value - basically update DOM.

any links?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12271
    
    1
XPath will let you locate DOM Nodes, but changing the content is up to the programmer.

What do you have so far?

Bill

Java Resources at www.wbrogden.com
aswin pal
Greenhorn

Joined: Jan 23, 2010
Posts: 9
Understood. Thanks. We located the node using XPath, and changed the required content programatically.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Manipulate DOM using XPath
 
Similar Threads
Update using XPath
xml files
Reading data from SOAP Envelope
Searching XML
create xml document by xpath in java