[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: reserved character in XML element value



Thanks Mike,

OK I can see your point. My routine is largely based in httpapi-land, however there's an argument for digression. I sent it to rpg400-l@xxxxxxxxxxxxx

Regarding your point about not needing the escape, it is inside the wrapper but I get a parser error (confusing).

I'd welcome any further insight over on the other forum...
 
Thanks so much.

David 

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mike Krebs
Sent: Monday, June 04, 2012 1:35 PM
To: HTTPAPI and FTPAPI Projects
Subject: RE: reserved character in XML element value

I believe you are right (if contained in a CDATA section there is no need to escape &), but lest we get too far off subject, please ask this question on midrange.com or similar.

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of David Baugh
Sent: Monday, June 04, 2012 1:53 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 &amp; 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
-----------------------------------------------------------------------