>Hello,
>
>  I'm writing a DOMDocument in memory with DOMWriter and then calling writeNode to a 
>file. In the xml file just created the dtd file does not appear, in other words 
>"SYSTEM "exp.dtd" is missing. The document type is created like this:
>
>        DOMDocumentType* type = 
>impl->createDocumentType(X("company"),X(""),X("exp.dtd"));
>
>        DOMDocument* doc = impl->createDocument(
>                    0,                    // root element namespace URI.
>                    X("company"),         // root element name
>                    type);
>
>
>The final XML:
>
><?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?><!DOCTYPE 
>company><company><product>Xerces-C</product><category name="0">XML Parsing 
>Tools</category><category name="Paulo" 
>name1="Oliveira">Experiencia<Qualquer>Nome</Qualquer></category><category 
>name="2">XML Parsing Tools</category><category name="3">XML Parsing 
>Tools</category><category name="4">XML Parsing Tools</category><developedBy>Apache 
>Software Foundation</developedBy></company>
>
>The final XML expected:
>
><?xml version="1.0" encoding="ISO-8859-1" standalone="no" ?><!DOCTYPE company SYSTEM 
>"exp.dtd"><company><product>Xerces-C</product><category name="0">XML Parsing 
>Tools</category><category name="Paulo" 
>name1="Oliveira">Experiencia<Qualquer>Nome</Qualquer></category><category 
>name="2">XML Parsing Tools</category><category name="3">XML Parsing 
>Tools</category><category name="4">XML Parsing Tools</category><developedBy>Apache 
>Software Foundation</developedBy></company>
>
>
>What is missing?
>
>
>
>Thank you!


Reply via email to