Hi,

 

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.]

   </description>

</feature>

 

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?

 

Regards,

C.P.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Xmltask-users mailing list
Xmltask-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xmltask-users

Reply via email to