ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <>
Subject Re: xmlproperty and multiple matches
Date Thu, 21 Sep 2006 20:27:05 GMT
> I am attempting to use xmlproperty to load an xml file and then read some
> attributes in it, however I have multiple matches. For example, my xml
> file can be structured as such:
> <profiles>
>        <profile name="default" path="/V6/Base/profiles/default" />
>        <profile name="wp2" path="/V6/Base/profiles/wp2"/>
> </profiles>
> And I need to get the path value for the profile the name of which is
> "default". Is there a way to specify that when I call properties that are
> in the file? Right now I call ${profiles.profile.path} but that returns
> both paths, comma delimited.

You'd probably need to use XPath to extract this, either using a small
XSL transform or more simply using xmltask (Google it). --DD

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message