Thanks Doug.
What If I am using ONLY the SAX Interface ?
There is a way to get it using ONLY the Interface provided by SAX (basically
the question is there is a callback associated to a DOCTYPE declaration)?


Thanks again
Alfredo

-----Original Message-----
From: Doug Brower [mailto:[EMAIL PROTECTED]]
Sent: Viernes, 27 de Abril de 2001 03:12 p.m.
To: '[EMAIL PROTECTED]'
Subject: RE: simple question.


Hello Alfredo:

Here's how you can get the name of the DTD, that is, the name immediately
following the DOCTYPE keyword in an XML source document:

DOMString GetDoctypeName( const DOM_Document& doc )
{
        DOM_DocumentType doctype = doc.getDoctype();
        if( doctype.isNull() )
                return "";      // oops, no document type declaration

        return doctype.getName();
}

In other words, the answer is to get a DOM_DocumentType object from your
DOM_Document and query its getName() method.

Sorry, the second part of your question has me stumped. I look forward to
hearing from others more versed than I.

Hope this helps,
-Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to