Try "org.apache.xml.serialize.XMLSerializer". It can be as simple as

    XMLSerializer serializer = new XMLSerializer(System.out, null);
    serializer.serialize(document);

Or you can use an "OutputFormat". Refer to the javadoc of Xerces.

Cheers,
Sandy Gao
Software Developer, IBM Canada
(1-416) 448-3255
[EMAIL PROTECTED]



                                                                                       
                              
                    "Steven Leija"                                                     
                              
                    <Steven.Leija@va       To:     <[EMAIL PROTECTED]>       
                              
                    ltech.com>             cc:                                         
                              
                                           Subject:     Writing XML Documents?         
                              
                    06/07/2001 08:50                                                   
                              
                    PM                                                                 
                              
                    Please respond                                                     
                              
                    to xerces-j-dev                                                    
                              
                                                                                       
                              
                                                                                       
                              



Hey All,

I'm currently new to Xerces and trying to write an xml document that I have
already read in.  I'm appending elements to the end of it and trying to out
put it.  But I'm having problems with this.  Does anyone have an example of
writing xml documents from a Document instance?  Or know of any links that
have code examples of this?

Thanks!

Steven



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to