Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Creating the DTD tag in an XML Documento

843834Jan 4 2002 — edited Jan 4 2002
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 1 2002
Added on Jan 4 2002
1 comment
172 views