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:[EMAIL PROTECTED]] 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 "&". Don -----Original Message----- From: Ma, Jian [mailto:[EMAIL PROTECTED]] 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:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
