Hi everybody,
I am trying to write a XML Document using QDomDocument, which should look like this:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
However, the result I am getting is this:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle PUBLIC 'SYSTEM' 'eagle.dtd'>
This is the code I am using:
QDomDocumentType docType
= implementation.
createDocumentType( "eagle",
"SYSTEM",
"eagle.dtd" );
QDomImplementation implementation;
QDomDocumentType docType = implementation.createDocumentType( "eagle", "SYSTEM", "eagle.dtd" );
To copy to clipboard, switch view to plain text mode
How can I make it only display the SYSTEM identifier instead of PUBLIC 'SYSTEM'?
Any suggestion is greatly appreciated!
Added after 7 minutes:
Nevermind, figured it out, the solution is to just use an empty QString like so:
QDomImplementation implementation;
QDomDocumentType docType = implementation.createDocumentType( "eagle", QString(), "eagle.dtd" );
To copy to clipboard, switch view to plain text mode
Bookmarks