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
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
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:
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
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
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.
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[
7 matches
Mail list logo