Lists Home |
Date Index |
Uche Ogbuji wrote:
>>I am on the process of creating an XML document using JDOM API's for which
>>need to add standalone="yes". How can this be done ?
> I'm not familiar with JDOM, but I don't know of any XML "API" that allows such
> fine control over the XML declaration. Your best bet is probably a text
> processing step after serialization from DOM that changes the declaration
> according to your needs. Since you'll probably have firm control over the
> documents you're producing, you might be able to control the trickier aspects
> of this.
PerlSAX2 makes that information part of the start_document() call, and SAX
writers should honour it. I suppose you could get Java SAX writers to honour the
Robin Berjon <email@example.com>
Research Engineer, Expway http://expway.fr/
7FC0 6F5F D864 EFB8 08CE 8E74 58E6 D5DB 4889 2488