I’m trying to read a property from a feature-file that looks like this:


<?xml version="1.0" encoding="UTF-8"?>

<feature id="test" label="test_Feature" nl="de" os="win32" provider-name="test provider" version="1.2">


   <description url="http://www.example.com/description">

      [Enter Feature Description here.]




Now I want to read the version attribute to use it further on in my Ant-script. I’ve tried the following solution:


<copy path="feature/@version" property="property1"/>


This throws the following exception:

  [xmltask] Can only copy/cut text() nodes and attribute values to properties



So how is it possible to read the version-attribute?