I know there is a "format" or "pretty" function in some Java libs for XML .

For example: In Dom4J , you can format your xml like this:

... ...
OutputFormat f = OutputFormat.createPrettyPrint();
f.setEncode('gb2312')
XMLWriter w = new XMLWriter( out, f);
w.write(document);
w.close();

... ...

Denis Weerasiri 写道:
Thank you for the attention.
But do you know a possible way only using Batik library?

begin:vcard
fn:Gentle Yang
n:Yang;Gentle
org:;Bioinformatics Dep.
adr;dom:;;Shenzhen,China
email;internet:[EMAIL PROTECTED]
tel;work:BGI
x-mozilla-html:TRUE
version:2.1
end:vcard

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to