ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ma, Jian" <Jian...@kmv.com>
Subject RE: "Illegal character or entity reference syntax" error
Date Sat, 05 Jan 2002 01:06:38 GMT
Donald,

I tried it and it worked.  Thank you very much for the quick response.

Jian"Chuck" Ma
KMV LLC
1620 Montgomery St. Suite 140
San Francisco, CA 94111
415-352-1157(w)




-----Original Message-----
From: Donald Mitchell [mailto:Donald.Mitchell@peregrine.com]
Sent: Friday, January 04, 2002 5:03 PM
To: 'Ant Users List'
Subject: RE: "Illegal character or entity reference syntax" error


I don't think the problem is with Ant.  I think it's the XML parsing rules.
You probably have to change all references to "&" to "&amp;".

Don

-----Original Message-----
From: Ma, Jian [mailto:Jian.Ma@kmv.com]
Sent: Friday, January 04, 2002 5:01 PM
To: 'Ant Users List'
Subject: RE: "Illegal character or entity reference syntax" error


Actually I just found out that it's the "&" causing the problem.  It must be
a special charater used internally by ant.  How should I deal with it?
Thank you.

Jian"Chuck" Ma
KMV LLC
1620 Montgomery St. Suite 140
San Francisco, CA 94111
415-352-1157(w)




-----Original Message-----
From: Ma, Jian 
Sent: Friday, January 04, 2002 4:43 PM
To: Ant Users List (E-mail)
Subject: "Illegal character or entity reference syntax" error


I'm trying to use <exec> task to run windows "net use" command.  It worked
fine when the password I used for net use is something like 'abcdef'.  Once
I have special charactors in it, such as '@', '|', '&', ant throws a
"Illegal character or entity reference syntax" error.  I also got the same
error when I try to assign a string with those special chars to a property
using the <property> task.  I tried to use '\' to escape these special chars
and that didn't help either.  Has anyone encounter the similiar problem?


Jian"Chuck" Ma
KMV LLC
1620 Montgomery St. Suite 140
San Francisco, CA 94111
415-352-1157(w)




--
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>

--
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