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 Mark Van Orman <ma...@icsaccess.com> on 2003/03/15 00:14:16 UTC
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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---
[This e-mail was scanned for viruses by Webjogger's AntiVirus Protection
System]
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
RE: DOCTYPE problems
Posted by Erik Rydgren <er...@mandarinen.se>.
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:mark@icsaccess.com]
Sent: den 15 mars 2003 00:14
To: xerces-c-dev@xml.apache.org
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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
---
[This e-mail was scanned for viruses by Webjogger's AntiVirus Protection
System]
---------------------------------------------------------------------
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