Hi,

I'm using this code to read a xml:

DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = factory.newDocumentBuilder();
this.doc = docBuilder.parse(new File(this.file));

I'm using this code to show the object doc:

((XmlDocument) doc).write(new PrintWriter(new BufferedWriter(new
FileWriter(this.file))));

Any other way to do this?

Every time I read and save the xml, it increases a
new line.

I'm using  Caucho.

Thanx

Maximiliano Muller

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to