This week's giveaways are in the MongoDB and Jobs Discussion forums. We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line! See this thread and this one for details.
Hello I have a prblem with storing data in the xml file - even if I update the Dom Document object (for example if I add a new node), the source xml file is not updated. Is there any "flushing" posibilty for a Dom Document object?
Rafal, W3C specification DOM level 2 do not define methods for storing XML data in file. All DOM implementations provide extensions for it. For example, with MS DOM implementation for IE and JavaScript you would use XMLDOMDocument.save() method; with JDOM - XMLOutputter class and output () method. You should check documentation for your DOM implementation. I think I read somewhere that DOM level3 will define methods for writing XML in file, but I am not sure. Ah, yes, found it: Document Object Model (DOM) Level 3 Content Models and Load and Save Specification [This message has been edited by Mapraputa Is (edited April 04, 2001).]
Hi Mapraputa Is: I have this problem and doesn't resolve it.Have you any idea to do this? That document you give seem can't help. I can't find any object to save node to xml file. It says:"permission denied" If anyone have method to save text to xml file please help me. Thanks in advanced!
Oh Thks oh I know.It means that I must do it using Java other than scriplet. I will use dom4j or jdom. Some times I hope that java has some scriplet that can control xml like JScript or VBScript.