This is a known bug which has been fixed. I'm not sure in which version the
patch first appered.
It should be in the latest stable build (2.2) though. Download and try it
out.

Regards

Erik Rydgren
Mandarinen systems AB
Sweden


-----Original Message-----
From: Mark Van Orman [mailto:[EMAIL PROTECTED]
Sent: den 15 mars 2003 00:14
To: [EMAIL PROTECTED]
Subject: DOCTYPE problems


Hi All,
    I couldn't find the Xerces-c user list so I am posting to this list.
    I am trying to include
<!DOCTYPE BLAxml SYSTEM "http://xml.bla.de/2.0/BLAxml.dtd";>

into a dom document that I am building. After doing this:

DOMDocumentType * dType = impl->createDocumentType(X("BLAxml"), X(""),
X("http://xml.bla.de/2.0/BLAxml.dtd";));
DOMDocument* doc = impl->createDocument(
                    0,                    // root element namespace URI.
                    X("company"),         // root element name
                    dType);                   // document type object (DTD).


then after further building "doc" i print out my node with:

 DOMWriter * theSerializer =
((DOMImplementationLS*)impl)->createDOMWriter();
 XMLFormatTarget * myFormTarget = new StdOutFormatTarget();
 theSerializer->writeNode(myFormTarget, *doc);



I get this:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE BLAxml>
etc.....

Why isn't Doctype being printed like I want/specified above. Thanks in
advance for any advise.

Thanks

Mark



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

---
[This e-mail was scanned for viruses by Webjogger's AntiVirus Protection
System]



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