[Home] [By Thread] [By Date] [Recent Entries]

  • From: Inga Eckermann <inga.eckermann@p...>
  • To: "'xml-dev@l...'" <xml-dev@l...>
  • Date: Fri, 04 May 2001 15:39:23 +0200

Hello,

I tried this to get the <!DOCTYPE .. declaration in an xml-file I produced with dom and jaxp - unfortunetaly it does not work: 
...
 DOMImplementation domimp = docbuilder.getDOMImplementation();
       DocumentType doctype = domimp.createDocumentType("foo", "url", "mydtd.dtd");
      Document xmlneu =  domimp.createDocument("url", "foo", doctype);

The Doctype-Declaration is still missing when I create a xml-file.
Could you please show me the right code to do so?
Thanks for your help!
Inga

Mit freundlichen Grüssen von
Inga Eckermann
ProFI Consult Gesellschaft für Unternehmensberatung mbH
-Anwendungsmanagement-
Rendsburger Str. 34 * 30659 Hannover
Tel.: 0511-9020-308 
mailto:inga.eckermann@p... 



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member