From Daragh.Farrell@thomson.com.au Thu Oct 12 00:59:55 2000 Return-Path: Mailing-List: contact general-help@xml.apache.org; run by ezmlm Delivered-To: mailing list general@xml.apache.org Received: (qmail 43880 invoked from network); 12 Oct 2000 00:59:55 -0000 Received: from unknown (HELO mail.tisa.com.au) (203.76.7.222) by locus.apache.org with SMTP; 12 Oct 2000 00:59:55 -0000 Received: from 10.1.1.6 by mail.tisa.com.au (InterScan E-Mail VirusWall NT); Thu, 12 Oct 2000 11:56:42 +1000 (AUS Eastern Standard Time) Received: by mail.tisa.com.au with Internet Mail Service (5.5.2650.21) id <4C4VVN3K>; Thu, 12 Oct 2000 11:56:42 +1000 Message-ID: <0F2937BDDDE0D211A9950090272B99B90251C918@sydthqems02.int.tisa.com.au> From: Daragh Farrell To: "'general@xml.apache.org'" Subject: RE: Xml writer Date: Thu, 12 Oct 2000 11:56:46 +1000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N I am using the serializer and I have not encountered this problem. Are calling document.normalize() before you try to serialize? Cheers Daragh -----Original Message----- From: Venkat Ramana Karpuram [mailto:vramana@gst.fnc.fujitsu.com] Sent: Thursday, 12 October 2000 9:37 To: general@xml.apache.org Subject: Re: Xml writer Hi! As suggested by Dane, i am using serialize API to write a DOM document as an xml file. I have been using the format as "UTF8" and indent as "true" in OutputFormat. The way it is printing is ok except that the new tags are not starting on the new line. I mean a child node tag starts at the end of its parent tag, but not on the new line. If anyone of you know a way to print the xml in a way that every new tag starts on new line. Please let me know if there is a way. Thanks for taking time Thanks & Regards Venkat Ramana Dane Foster wrote: > Use the XML serializer. It's located in org.apache.xml.serialize. You > should review the java docs to get a feel for how to use it. > ----- Original Message ----- > From: "Venkat Ramana Karpuram" > To: > Sent: Monday, October 09, 2000 7:13 PM > Subject: Xml writer > > > Hi! > > I am working with generation of Xml files from Java objects. > wherever i have > > read, i didn't get a way to generate an xml document from a DOM tree. The > way > > parser generates a DOM tree from xml file, i am expecting that there > should be > > some way to generate an xml file from a DOM tree. I could not find any API > which > > does this job in the Xerces-1_2_0 documentation. If anyone knows it, > please let > > me know. > > Thanks & Regards > > Venkat Ramana > > > > ---------------------------------------------------------------------------- > ---- > > > --------------------------------------------------------------------- > > In case of troubles, e-mail: webmaster@xml.apache.org > > To unsubscribe, e-mail: general-unsubscribe@xml.apache.org > > For additional commands, e-mail: general-help@xml.apache.org > > --------------------------------------------------------------------- > In case of troubles, e-mail: webmaster@xml.apache.org > To unsubscribe, e-mail: general-unsubscribe@xml.apache.org > For additional commands, e-mail: general-help@xml.apache.org ===================================================================== WARNING -This e-mail, including any attachments, is for the personal use of the recipient(s) only. Republication and re-dissemination, including posting to news groups or web pages, is strictly prohibited without the express prior consent of Thomson Legal & Regulatory Group Asia Pacific Ltd ACN 058 914 668 =====================================================================