Parsing a string within an XML document using Ant

kaitrac

New Member
Within the following document:\[code\]<?xml version="1.0" encoding="utf-8"?><resources><string name="toc">section</string><string name="id">id17</string></resources>\[/code\]How do I return the value: id17When I run the following target in my Ant file:\[code\] <target name="print" description="print the contents of the config.xml file in various ways" > <xmlproperty file="$config.xml" prefix="build"/> <echo message="name = ${build.resources.string}"/> </target>\[/code\]I get -\[code\]print: [echo] name = section,id17\[/code\]Is there a way to specify that I only want the resource "id"?
 
Back
Top