Re: ContentHandler.startDocument callback not coming, while transforming the input XML File.

2012-06-13 Thread Harsh_Gupta
I've one more query: If there are some validation(fatal) errors in the input XML file, then we aren't getting the endDocument callback. Is there any workaround for the same? Harsh Gupta Adobe Systems Michael Glavassevich-3 wrote: > > You could write an XMLFilter [1] which wraps the XMLReader

Re: ContentHandler.startDocument callback not coming, while transforming the input XML File.

2012-06-13 Thread Harsh_Gupta
Thanks Michael for the help. :) Michael Glavassevich-3 wrote: > > You could write an XMLFilter [1] which wraps the XMLReader and pass that > to the Transformer instead. > > [1] > http://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/XMLFilter.html > > Michael Glavassevich > XML Techno

Re: ContentHandler.startDocument callback not coming, while transforming the input XML File.

2012-06-12 Thread Michael Glavassevich
You could write an XMLFilter [1] which wraps the XMLReader and pass that to the Transformer instead. [1] http://xerces.apache.org/xerces2-j/javadocs/api/org/xml/sax/XMLFilter.html Michael Glavassevich XML Technologies and WAS Development IBM Toronto Lab E-mail: mrgla...@ca.ibm.com E-mail: mrgla

ContentHandler.startDocument callback not coming, while transforming the input XML File.

2012-06-12 Thread Harsh_Gupta
We want to get startDocument callback in following scenarios: - When any input xml file is parsed before doing transformation. - Or when any file is opened using document function of XSLT. Even after registering our own ContentHandler object in xmlReader object, we aren't getting any callbacks. W