ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Weighill Smith <phil.weighill-sm...@volantis.com>
Subject Re: cvs commit: ant/docs/manual/CoreTasks echoxml.html
Date Thu, 26 May 2005 09:52:08 GMT
On Thu, 2005-05-26 at 10:06 +0100, Steve Loughran wrote:
> > Hmm.  Currently the task is only writing the first
> > child as the root element of the output XML document,
> > and including the XML declaration.  AFAIK a
> > non-well-formed fragment should forego the
> > declaration.  If so, we can do one of the following:
> > 
> > 1) Disallow > 1 direct child of <echoxml>
> > 2) Always write fragments, skipping the declaration.
> > 3) Automatically include the declaration when there
> >    is only one direct child element.
> > 4) Add some sort of cumbersome configuration options.
> > 
> > XML not being my forte, I can say that 2) is simplest.
> >  What say any XML gurus out there?
> 
> I'd say sometimes you want to write fragments, sometimes whole bits
> with 
> encoding declarations. That is, #4.
> 
> Make the default a well formed XML doc with a UTF-8 encoding; if you 
> want fragment then fragment=true, if you want a different encoding,
> then 
> select it with an  encoding attr.

I'd go with that too, though it might be better to indicate whether you
want the declaration rather than whether it is a fragment.

Phil :n)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message