ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George_Schl...@ssga.com
Subject XmlProperty beahvior with empty elements
Date Fri, 28 Mar 2003 21:20:24 GMT
I am trying to use the XmlProperty task to read in XML files to create
properties, and I am having a problem that I didn't have using normal
properties files (a la <property file=""/>)

If this is my XML file, the property server.list.stack2 is not set at all.
<server>
   <list>
      <stack1>server1,server2</stack1>
      <stack2></stack2>
   </list>
</server>

Using a normal properties file, I can get server.list.stack2="" by doing
this:
server.list.stack1=server1,server2
server.list.stack2=

How can I get the proper "empty element" behavior, i.e. create a property
with value of empty string?

Thanks!
George



Mime
View raw message