Re: append to xml

Jason Winnebeck <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Message-ID <[email protected]>
Did you write the file back out? I know it's obvious but you didn't mention it 
in your code (and you showed the loading).

Jason

pajeczyca wrote:
> I am trying to appent to existing xml, but something doesn't work
> what am i missing??
> My code
> 
> doc = new SAXBuilder()build("file.xml");
> 
> Element e = new Element("person");
> e.setAttribute("name", "Joe");
> 
> doc.getRootElement().addContent(e);
> 
> I get no errors but my xml file is not changed
> 
> Thank you
> 
> Agnes
> 
> 
> 
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.