ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Lingemann <carsten.lingem...@essential-logic.com>
Subject RE: XML question related to build.xml development
Date Tue, 04 Dec 2001 19:12:39 GMT
try using &quot; where you want your quotes to be:

<property value="&quot;X&quot;" />

you should also be able to use the single quite double quote trick:

<property value='"X"' />

I hope that is what you are looking for.

Carsten

-----Original Message-----
From: Ron Coutts [mailto:RonC@quadrus.com]
Sent: Tuesday, December 04, 2001 2:04 PM
To: 'Ant Users List' (E-mail)
Subject: XML question related to build.xml development


Sorry for the slightly off topic question, but I thought many Ant users
may find the answer helpful when setting up build.xml files.
How does one 'escape' a quote character into XML. For example: 
<property name="foo" value="X" /> 
If now instead of X, I want to put "X" in there, (i.e. with the double
quotes).  How do I do that? The following doesn't seem to work. 
<properaty value="\"X\"" /> 
Ron 


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

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


Mime
View raw message