Re: Sax events writer

2011-01-11 Thread Michael Ludwig
Michael Glavassevich schrieb am 11.01.2011 um 08:17 (-0500): > > Michael Ludwig wrote on 01/11/2011 04:40:50 AM: > > > http://www.ibm.com/developerworks/xml/library/x-tipsxtf/index.html > > > > This old article from almost ten years ago talks says you can also > > invoke the serializer directly,

Re: Sax events writer

2011-01-11 Thread Michael Glavassevich
Michael Ludwig wrote on 01/11/2011 04:40:50 AM: ... > http://www.ibm.com/developerworks/xml/library/x-tipsxtf/index.html > > This old article from almost ten years ago talks says you can also > invoke the serializer directly, and it still works: > > import org.apache.xml.serializer.OutputProper

Re: Sax events writer

2011-01-11 Thread Michael Ludwig
Michael Glavassevich schrieb am 09.01.2011 um 21:49 (-0500): > Michael Ludwig wrote on 01/09/2011 09:02:36 PM: > > I think you're looking for org.xml.sax.helpers.DefaultHandler! > > That class doesn't do anything on its own. Sure you can extend it to > provide implementations of the various SAX2

Re: Sax events writer

2011-01-10 Thread Mansour Al Akeel
Michael, thank you. That helped a lot. On Sun Jan 09,2011 09:49 pm, Michael Glavassevich wrote: >Michael Ludwig wrote on 01/09/2011 09:02:36 PM: >> Mansour Al Akeel schrieb am 09.01.2011 um 22:30 (+0200): >> >> > From what I see, it's common requirement to serialize sax events, >

Re: Sax events writer

2011-01-09 Thread Michael Glavassevich
Michael Ludwig wrote on 01/09/2011 09:02:36 PM: > Mansour Al Akeel schrieb am 09.01.2011 um 22:30 (+0200): > > > From what I see, it's common requirement to serialize sax events, and > > write them as XML to a stream. > > > > I don't a big problem inclusing xalan-j or xmlwriter package, but > >

Re: Sax events writer

2011-01-09 Thread Michael Ludwig
Mansour Al Akeel schrieb am 09.01.2011 um 22:30 (+0200): > From what I see, it's common requirement to serialize sax events, and > write them as XML to a stream. > > I don't a big problem inclusing xalan-j or xmlwriter package, but > wondering since this is a common requirement it should be avail

Sax events writer

2011-01-09 Thread Mansour Al Akeel
Hello all, I am having a little issue trying to write the resutls of SAX event to a file. In the past I have done this through diffent ways, like using Xalan: Serializer serializer = SerializerFactory .getSerializer(OutputPropertiesFactory .getDefaultMethodProperties("xml")); serializer.set