you have to use
SAX2XMLReader * parser = XMLReaderFactory::createXMLReader();
and register with parser a class of type LexicalHandler (and I assume
ContentHandler, as well). this will give you access to DTD, but not xml
decl. i think there is no way to get to the xml decl; i haven't found one.
matt
On Aug 7, Vinodkumar S wrote: -----------------
>Hello,
>i am creating a DOM tree using a saxparser, the saxparser reads from the
>file , whose name i will be passing, everything is fine, the only problem
>which i am facing now is that i could not create XML declarations nodes and
>DOCTYPE nodes, since i am not able to catch these two statements in SAX, is
>Somebody there who can help me in this matter, so that i can get XMLDECL and
>DOCTYPE from file using SAX, do reply back immediately, since i am struck up
>here .
>
>Regards
>Vinod
>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
--
Matt Leinhos
[EMAIL PROTECTED]
"What's that you say, Mrs. Robinson? Joltin' Joe has left and gone away."
-- Simon and Garfunkel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]