I am using the Xalan XLST Transformer to generate XML documents.
I want to include a DTD tag in each XML file and in my programs I create it using the following code:
...
DocumentType dt = documento.getImplementation().createDocumentType(nombreDTD, nombreDTD, nombreArchivo);
documento.appendChild(dt);
..
The variable documento is the root element of the document, nombreDTD is the name identifying the root element tag, nombreArchivo is the name of the DTD file I want to reference.
However when the XML output is generated, the DTD tag is always missing.
Do anybody have any idea what might be causing this?
Thanks,
Color