RE: Accessing xml and doctype declaration via SAX

2008-08-07 Thread Huynh, Lynn T.
(); } -Original Message- From: Michael Glavassevich [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 9:28 PM To: j-users@xerces.apache.org Subject: Re: Accessing xml and doctype declaration via SAX Hi Daniel, This is not a bug. The documentation for

Re: Accessing xml and doctype declaration via SAX

2008-03-13 Thread Michael Glavassevich
Hi Daniel, This is not a bug. The documentation for setDocumentLocator() [1] says: "Note that the locator will return correct information only during the invocation SAX event callbacks after startDocument returns and before endDocument is called. The application should not attempt to use it at any

Re: Accessing xml and doctype declaration via SAX

2008-03-13 Thread Daniel Yokomizo
On Thu, Mar 13, 2008 at 6:51 PM, Stanimir Stamenkov <[EMAIL PROTECTED]> wrote: > Wed, 12 Mar 2008 16:25:59 -0300, /Daniel Yokomizo/: > > > > The only issue I still have > > is getting the xml declaration info (e.g. version, encoding) but right > > now I can just ignore it. > > That info you sho

Re: Accessing xml and doctype declaration via SAX

2008-03-13 Thread Stanimir Stamenkov
Wed, 12 Mar 2008 16:25:59 -0300, /Daniel Yokomizo/: The only issue I still have is getting the xml declaration info (e.g. version, encoding) but right now I can just ignore it. That info you should be able to obtain through the Locator2 [1] interface. For example, in your ContentHandler imp

Re: Accessing xml and doctype declaration via SAX

2008-03-12 Thread Daniel Yokomizo
On Tue, Mar 11, 2008 at 7:13 PM, Michael Glavassevich <[EMAIL PROTECTED]> wrote: > Hi Daniel, > > "Daniel Yokomizo" <[EMAIL PROTECTED]> wrote on 03/11/2008 05:31:53 > PM: > > > Hi, > > > > I'm writing a xml based template (I have some reasons to not use > > XSLT for this) and I'm using SA

Re: Accessing xml and doctype declaration via SAX

2008-03-11 Thread Michael Glavassevich
Hi Daniel, "Daniel Yokomizo" <[EMAIL PROTECTED]> wrote on 03/11/2008 05:31:53 PM: > Hi, > > I'm writing a xml based template (I have some reasons to not use > XSLT for this) and I'm using SAX to parse the template source and > create the AST that will eventually be executed and create the > r

Accessing xml and doctype declaration via SAX

2008-03-11 Thread Daniel Yokomizo
Hi, I'm writing a xml based template (I have some reasons to not use XSLT for this) and I'm using SAX to parse the template source and create the AST that will eventually be executed and create the resulting xml. The template may declare the doctype and xml, so I would like to make the AST jus