QDomDocument DTD location
When creating a QDomDocument
How do I tell the XML file the location of the DTD to use. For example:
Quote:
<!DOCTYPE Report SYSTEM "report.dtd">
how do I put the SYSTEM "report.dtd" into the DTD description. I have looked through the API and there is nothing about adding an reference to a DTD location.
Thanks!
Re: QDomDocument DTD location
Re: QDomDocument DTD location
Am not sure if QXmlStreamWriter::writeDTD wil help you....
Re: QDomDocument DTD location
Quote:
Originally Posted by
spirit
The createProcessingInstruction places a processing instruction: <?...?> marker.
Quote:
Originally Posted by aamer4yu
This is based on the QXmlStreamWriter class instead of the QDomDocument and outputs a DTD based on the input argument. The QDomDocument automatically creates the "<!DOCTYPE" line for you for referencing a DTD.
Thanks, for trying though!
Re: QDomDocument DTD location
[SOLVED]: QDomDocument DTD location
Quote:
Originally Posted by
jacek
This worked! Thanks!
Re: [SOLVED]: QDomDocument DTD location
QDomImplementation:: createDocumentType () como lo utilizas para Hacer el parser, podrias subir un ejemplo chiquito.
?