permaculture playing cards*
The moose likes Java in General and the fly likes About Xalan Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "About Xalan" Watch "About Xalan" New topic
Author

About Xalan

Grégoire Berclaz
Greenhorn

Joined: Feb 19, 2003
Posts: 28
Hello,
I need xalan and read xml files with. Now I would like to edit a node. I select this node with

Then I set a value to this node

Then I check it

and it wrote : "myLogo.gif"
If I open my xml file, the (only) node "logo" hasn't got a value...
What is my problem? Why the string "myLogo.gif" isn't save?
Gr�goire Berclaz
rom chatterjee
Ranch Hand

Joined: Dec 11, 2001
Posts: 46
Hi
You are nearly there. You have read the file into the DOM in memory. The change you have made is in memory. You now just need to write the code for persisting the change to file. Have a look at the DOMSerializer documentation.
Good luck!


Rom Chatterjee<BR>Sun Certified Java Programmer
 
Don't get me started about those stupid light bulbs.
 
subject: About Xalan
 
Similar Threads
Sample Code For DOM
node type text
Node.getNodeValue() is not parsing "
return as xml document
Xalan - node.setNodeValue(String)