I don't know for sure if this is the problem or not, but many encodings supported by Sun and IBM's JDK's are NOT supported by MS-J++. An exception (just like that one) is generally thrown when an unimplemented encoding is specified.
It does seem like you might be hitting this problem. If so, it's a JDK problem, not a parser problem. MS is not required to port all the encodings, so they didn't. Mike 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.
