Could you help me understand why there are two version of this
"XMLSerializer"? I downloaded the Xerces-J-tools.1.4.0.zip, which has a
buggy version of this class. It keeps giving this "Writer has not been set"
error. Took me a whole day to figure out that I should have downloaded
Xerces-J-bin.1.4.0.zip.

Regards

Michael
603-791-5364

> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, June 08, 2001 9:41 AM
> To:   [EMAIL PROTECTED]
> Subject:      Re: Writing XML Documents?
> 
> 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]

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

Reply via email to