You're looking at very very old code. The new code doesn't have the init method, and it will check if encoding is null when creating the OutputStreamWriter.
arkin Kenneth Ramirez wrote: > > I couldn't call it in the way that you specified, but I was able to call it > this > way: > > ByteArrayOutputStream bao = new ByteArrayOutputStream(); > XMLSerializer s = new XMLSerializer(); > > s.serialize(doc, bao, null); > > return bao.toString(); > > However, this is throwing UnsupportedEncodingException. > > I tried walking through the code and it seems to break on the following line > in > BaseSerializer.init(): > > init( new OutputStreamWriter( output, encoding ), format ); > > I don't know if this has anything to do with the fact that the Java compiler > being used is MS-J++ > at this client site or not. I'm not sure which compiler and JDK version the > Xerces library was compiled with. > > Ken R. -- ---------------------------------------------------------------------- Assaf Arkin www.exoffice.com CTO, Exoffice Technologies, Inc. www.exolab.org
