を使用して、XML文書内の文字列を解析:は、次のドキュメント内のAnt
私は値を戻すにはどうすればよい<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="toc">section</string>
<string name="id">id17</string>
</resources>
:ID17
私はAntのファイルに次のターゲットを実行すると:
<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>
私が取得 -
print:
[echo] name = section,id17
リソース "id"だけを指定する方法はありますか?
詳細な対応をありがとうございます。私は結果を公表します。 – VARoadstter
まさに私が探していたもの! :) – splash