[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: reserved character in XML element value
Hi David,
I just went through this with setting up several XML applications on my
clients systems. You have to replace it with the &. There are several
characters along with the & that are "illegal" in XML, they are <, >, ', and
".
I just did a routine in my XML document creation programs to replace the &
with the + sign and passed that instead as my client wanted to retain the &
in their name and address fields.
Hope this helps,
T Crook
-----Original Message-----
From: David Baugh
Sent: Monday, June 04, 2012 2:52 PM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: reserved character in XML element value
Hello,
I have a data item on file that I'm inserting into an element before posting
it in a request. In this particular case, the data contains a '&' which is
causing server's parser to error out. I do have it wrapped in <![CDATA[
...]]>. Obviously I'm misunderstanding this, since I thought occurrences of
such would be accepted if inside this wrapper.
Otherwise, am I correct in assuming that I'd need to search and replace any
occurrences of this with & before assignment?
Thanks,
David
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------