ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Ken Barozzi <nicola...@apache.org>
Subject Re: Read repetitive tags as properties from an XML file
Date Mon, 26 Aug 2002 16:14:22 GMT


Simon Baker wrote:
> Problem:
> Retrieve a number of properties from a given XML file.
> Some tags are repeated in the XML file, for instance:
> <b>
>   <a> one </a>
>   <a> two </a>
>   <a> three </a>
> </b>
> The property 'b.a' in ant should be set to 'one,two,three'
> 
> Known solutions:
> 1. With xsl I have managed to convert the xml file to property file and then
> simple load the property file. This is not ideal.
> 2. Use XMLProperty, I however could not get it to handle repetitive tags as
> in the above example.
> 3. Write my own ant command, to retrieve repetitive tags.
> 
> Any better ideas?

Added a patch to do as you ask :-)

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12045

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message