XML - no encoding

2014-06-17 Thread John M Bliss
I'm working with a vendor to troubleshoot an error and he's asked me to *not* replace with amp; etc in a URL field. I'm building an XML doc with xmlnew() and then posting it with cfhttp method=post and I'm not explicitly calling urlencodedformat() or anything. CF is just automatically and (I

Re: XML - no encoding

2014-06-17 Thread Jon Clausen
CDATA: MyXMLObj.MyXMLChild[1].XMLCData=‘http://myurl.com?x=ya=b'; Most XML libraries for other languages will read CDATA just like they would a non-escaped node. On Jun 17, 2014, at 2:33 PM, John M Bliss bliss.j...@gmail.com wrote: I'm working with a vendor to troubleshoot an error and

Re: XML - no encoding

2014-06-17 Thread John M Bliss
So, using your example, instead of: MyXMLObj.MyXMLChild[1] = 'http://myurl.com?x=ya=b'; ...I'd use: MyXMLObj.MyXMLChild[1].XMLCData = 'http://myurl.com?x=ya=b'; ...? On Tue, Jun 17, 2014 at 2:39 PM, Jon Clausen jon_clau...@silowebworks.com wrote: CDATA:

Re: XML - no encoding

2014-06-17 Thread Jon Clausen
Exactly. On Jun 17, 2014, at 2:54 PM, John M Bliss bliss.j...@gmail.com wrote: So, using your example, instead of: MyXMLObj.MyXMLChild[1] = 'http://myurl.com?x=ya=b'; ...I'd use: MyXMLObj.MyXMLChild[1].XMLCData = 'http://myurl.com?x=ya=b'; ...? On Tue, Jun 17, 2014 at 2:39

Re: XML - no encoding

2014-06-17 Thread Dave Watts
CDATA: MyXMLObj.MyXMLChild[1].XMLCData=蘇ttp://myurl.com?x=ya=b'; Most XML libraries for other languages will read CDATA just like they would a non-escaped node. I'm pretty sure that this will only work for element values, not attribute values. I'm not sure whether John's using this in an

Re: XML - no encoding

2014-06-17 Thread John M Bliss
Element. This changed my XML from this: Urlhttp://myurl.com/?x=yamp;a=b/Url ...to this: Url![CDATA[ http://myurl.com/?x=ya=b]]/Url ...which, I guess, was the desired effect. Now, response I'm getting has changed to, URL 'http:// http://myurl.com/?x=ya=b' is not in the expected format.

Re: XML - no encoding

2014-06-17 Thread John M Bliss
SOLVED: URL had leading space. trim() fixed it. Thanks! :-) On Tue, Jun 17, 2014 at 3:10 PM, John M Bliss bliss.j...@gmail.com wrote: Element. This changed my XML from this: Urlhttp://myurl.com/?x=yamp;a=b http://myurl.com/?x=ya=b/Url ...to this: Url![CDATA[