ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mark.rus...@pnc.com
Subject stripping cr/lf off the properties from a xmlproperty command
Date Fri, 24 Sep 2004 14:53:49 GMT
I have an XML configuration file written by users it looks something like
this:
<pnc>
  <build>
    <applicationname>test</applicationname>
  </build>
</pnc>

some users enter it like this:
<pnc>
  <build>
    <applicationname>
      test
    </applicationname>
  </build>
</pnc>

the white space gets cleared off the command but the line terminators are
still there.
the value I get is
"
test
"
Does anyone know of a way to strip the line terminators and just get the
value "test"?

I searched the archives but could not find anything on this.
P.S. I'm not afraid to write a custom task if needed.

Mark Russell
PNC
412-768-9603



-----------------------------------------
The contents of this email are the property of PNC. If it was not addressed
to you, you have no legal right to read it. If you think you received it in
error, please notify the sender. Do not forward or copy without permission
of the sender.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message