From: Roy W. <gar...@ya...> - 2013-11-17 16:52:40
|
In my app' I run updates via cURL, like so: $query = '<?xml version="1.0" encoding="UTF-8"?> <query xmlns="http://exist.sourceforge.net/NS/exist"> <text> <![CDATA[update insert ' . $update . ' into doc("/db/contact/data/activity.xml")/* ]]> </text> </query>'; I have a problem whereby a text node in the update ($update) can also contain CDATA and I can't figure out how to format the query to get this to work. e.g. (not working): $query = '<?xml version="1.0" encoding="UTF-8"?> <query xmlns="http://exist.sourceforge.net/NS/exist"> <text> <![CDATA[update insert <update><![CDATA[<p>Some text<br/>with HTML</p>]]></update>' into doc("/db/contact/data/activity.xml")/* ]]> </text> </query>'; Thanks, Roy |