Re: special chars in xml?
James Holmes wrote: > Quite right - you can't add it as a child tag then? nope. ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288250 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: special chars in xml?
Quite right - you can't add it as a child tag then? On 9/12/07, Paul Hastings <[EMAIL PROTECTED]> wrote: > Dave Watts wrote: > > You can't use CDATA for attribute values, if I recall correctly. > > that appears to be the case. > > "xml. what they speak in hell." ;-) > > ~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288249 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: special chars in xml?
Dave Watts wrote: > You can't use CDATA for attribute values, if I recall correctly. that appears to be the case. "xml. what they speak in hell." ;-) ~| Check out the new features and enhancements in the latest product release - download the "What's New PDF" now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288248 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: special chars in xml?
> > if i push this sql onto the node's xml attributes > > Can you store the clause as CDATA, or is that going to make > using it later on too difficult? You can't use CDATA for attribute values, if I recall correctly. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusion Today ColdFusion 8 beta - Build next generation apps Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288247 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: special chars in xml?
Can you store the clause as CDATA, or is that going to make using it later on too difficult? On 9/12/07, Paul Hastings <[EMAIL PROTECTED]> wrote: > my xml torture continues. i need to squirt an sql where clause wrapped in xml > at > a server, something like: > > WHERE a >= 40 AND b < 42 > > if i push this sql onto the node's xml attributes, cf8's only escaping the > last "<", > > spatialQuery=xmlElemNew(axl,"SPATIALQUERY"); > spatialQuery.xmlAttributes["where"]="a >= 40 AND b < 42"; > //thanks brianfor the following > arrayAppend(axl["arcxml"].xmlChildren[1].xmlChildren[1].xmlChildren,spatialQuery); > > produces the where clause below which the server chokes on: > > where="a >= 40 AND b < 42" > > if i follow "good practices" & xmlFormat() the where clause before i stuff it > into the xml attributes, the "&" part of "<" gets double escaped and the > server chokes on it: > > where="a >= 40 AND b < 42" > > not sure if i'm just my usual xml blind or if this is a bug in cf8. -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288246 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4