Nevermind, I found out how to do it, I think:

                static const char*  szMemBufId = "request";
                MemBufInputSource* memBufIS = new MemBufInputSource( 
                        (const XMLByte*)szRequest.c_str(),
_tcslen(szRequest.c_str()), szMemBufId, false );

                //  Get the starting time and kick off the parse of the
indicated
                //  file. Catch any exceptions that might propogate out of
it.

                DOMString strPath( "file:/d:/ns3-2/bin/NSAPI.dtd" );
                memBufIS->setSystemId( XMLString::replicate(
strPath.rawBuffer() ) );

Thanks for any comments, especially if there is a better way to use
DOMString and get an XMLCh* out of it
-Julie



-----Original Message-----
From: Julia Larson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 2:38 PM
To: '[EMAIL PROTECTED]'
Subject: DTD and DomParser



Please help a newbie who can't find it in the docs

How do I specify a DTD to use with a DomParser instance?

Where does it look for the dtd?  local directory?  
Does it need a fully qualified path?

Help!
Thank you

---------------------------------------------------------------------
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