From: "Carlos Barroso" <[EMAIL PROTECTED]>
> Hy there.
> I'm a starter. Can someone please tell me how can I
> set the encoding attribute of  "<?xml version='1.0' encoding='UTF-8'?>",
to
> something
> diferente like"ISO-8859-1" when I create a document from scratch?

You can specify the encoding of a Document when using the XMLWriter class to
output XML to a file.

e.g.

OuputFormat format = new OuputFormat();
format.setEncoding("ISO-8859-1");
XMLWriter writer = new XMLWriter( out, format );
writer.write( document );

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-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to