You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Dean Roddey <dr...@charmedquark.com> on 2001/04/29 05:01:03 UTC

Re: Getting DOCTYPE information using SAX interface

No, maybe with SAX2 (haven't looked but probably.) Otherwise, you'll have to
fall back to the internal callbacks that the parser itself uses to send data
out to the SAX and DOM parsers.

----- Original Message -----
From: "Alfredo Mu?oz" <am...@eversystems.com>
To: <xe...@xml.apache.org>
Sent: Saturday, April 28, 2001 8:06 PM
Subject: Getting DOCTYPE information using SAX interface


>
>
>
> HI everybody.
> When using the SAX interface,  there is a way to get the information in
the
> DOCTYPE declaration ?
>
> In the example below:
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <!DOCTYPE RootElement SYSTEM "myDTD.dtd">
> <RootElement>
> ........
> </RootElement>
>
> How I get the name after DOCTYPE (RootElement) and the name after SYSTEM
> (the external DTD name "myDTD.dtd")
> Many thanks
>
> Alfredo
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: Getting DOCTYPE information using SAX interface

Posted by Dean Roddey <dr...@charmedquark.com>.
Check the SAX2 interfaces first. That would be a more portable solution. If
not, then look at SAXParser, so see how it uses the internal callbacks.
Basically, you'd be writing your own 'parser' class, but all parser classes
are are a set of installed callbacks on the XMLScanner object that does the
real parsing work.

Another option is to look at the 'advanced callback' on the SAXParser. Its
really just one of the internal callbacks that is exposed. But I think its
the document callback, and not the document type callback, so it might not
provide the info you want.

----- Original Message -----
From: "Alfredo Mu?oz" <am...@eversystems.com>
To: <xe...@xml.apache.org>
Sent: Saturday, April 28, 2001 8:51 PM
Subject: RE: Getting DOCTYPE information using SAX interface


> OK, I will dig out with the internal SAX callbacks
> Many Thanks,
> Alfredo
>
> -----Original Message-----
> From: Dean Roddey [mailto:droddey@charmedquark.com]
> Sent: Saturday, April 28, 2001 11:01 PM
> To: xerces-c-dev@xml.apache.org
> Subject: Re: Getting DOCTYPE information using SAX interface
>
>
> No, maybe with SAX2 (haven't looked but probably.) Otherwise, you'll have
to
> fall back to the internal callbacks that the parser itself uses to send
data
> out to the SAX and DOM parsers.
>
> ----- Original Message -----
> From: "Alfredo Mu?oz" <am...@eversystems.com>
> To: <xe...@xml.apache.org>
> Sent: Saturday, April 28, 2001 8:06 PM
> Subject: Getting DOCTYPE information using SAX interface
>
>
> >
> >
> >
> > HI everybody.
> > When using the SAX interface,  there is a way to get the information in
> the
> > DOCTYPE declaration ?
> >
> > In the example below:
> >
> > <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> > <!DOCTYPE RootElement SYSTEM "myDTD.dtd">
> > <RootElement>
> > ........
> > </RootElement>
> >
> > How I get the name after DOCTYPE (RootElement) and the name after SYSTEM
> > (the external DTD name "myDTD.dtd")
> > Many thanks
> >
> > Alfredo
> >
> >
> >
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> > For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


RE: Getting DOCTYPE information using SAX interface

Posted by Alfredo Mu?oz <am...@eversystems.com>.
OK, I will dig out with the internal SAX callbacks
Many Thanks,
Alfredo

-----Original Message-----
From: Dean Roddey [mailto:droddey@charmedquark.com]
Sent: Saturday, April 28, 2001 11:01 PM
To: xerces-c-dev@xml.apache.org
Subject: Re: Getting DOCTYPE information using SAX interface


No, maybe with SAX2 (haven't looked but probably.) Otherwise, you'll have to
fall back to the internal callbacks that the parser itself uses to send data
out to the SAX and DOM parsers.

----- Original Message -----
From: "Alfredo Mu?oz" <am...@eversystems.com>
To: <xe...@xml.apache.org>
Sent: Saturday, April 28, 2001 8:06 PM
Subject: Getting DOCTYPE information using SAX interface


>
>
>
> HI everybody.
> When using the SAX interface,  there is a way to get the information in
the
> DOCTYPE declaration ?
>
> In the example below:
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <!DOCTYPE RootElement SYSTEM "myDTD.dtd">
> <RootElement>
> ........
> </RootElement>
>
> How I get the name after DOCTYPE (RootElement) and the name after SYSTEM
> (the external DTD name "myDTD.dtd")
> Many thanks
>
> Alfredo
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org