Hallo, I am trying to serialize a document that I construct in my programm but I get a "org.apache.axiom.om.OMException: Unsupported Operation" Exception. The code I tried to get the xml is:
BufferedOutputStream bostream = new BufferedOutputStream(new FileOutputStream(fileName)); document.serialize(bostream); bostream.close(); or XMLOutputFactory xof = XMLOutputFactory.newInstance(); XMLStreamWriter writer = xof.createXMLStreamWriter(new FileWriter(fileName)); lineItem.serializeAndConsume(writer); writer.close(); But in both cases I get the same Exception. So the Question is serialize() implemented in the 1.0 Release of Axiom or where else should I look for the solution? I am greatful for all ideas. Yours Sven -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
