OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Adding standalone="yes" to XML document

[ Lists Home | Date Index | Thread 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 
is-standalone property?

-- 
Robin Berjon <robin.berjon@expway.fr>
Research Engineer, Expway        http://expway.fr/
7FC0 6F5F D864 EFB8 08CE  8E74 58E6 D5DB 4889 2488





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS