File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Head First Android 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
 
Consider Paul's rocket mass heater.
 
subject: About Xalan
 
It's not a secret anymore!