From: "Carlos Barroso" <[EMAIL PROTECTED]>
> Hy there.
> I'm trying to create a XML document and I need to put a DOCTYPE
> at the begining os the document.
> 
> 1: <?xml version="1.0" encoding="ISO-8859-1"?>
> 2: <!DOCTYPE EXTRACTO_DETALHADO SYSTEM 'ext_det.dtd'>
> 3: ( ... )
> 
> How can I put line 2 in the resulting document.

DocumentFactory factory = new DocumentFactory();
Document doc = factory.createDocument();
doc.addDocType( "EXTRACTO_DETALHADO", null, "ext_det.dtd");

James
-------
http://radio.weblogs.com/0112098/
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com


-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to