Hi, Not using & shouldn't work at all because then the XML document isn't wellformed. I did some tests on the online XUpdate-demo on http://www.x-hive.com/xupdate
this: (note & before http://myserver ...) <xu:modifications version="1.0" xmlns:xu="http://www.xmldb.org/xupdate"> <xu:update select="/addresses/address/town">&http://myserver.cgi?parameter1=min eparameter2=0</xu:update> </xu:modifications> results in this: <?xml version="1.0"?> <addresses> <address name="Andreas"> <town>&</town> </address> <address name="Lars"> <town>&</town> </address> </addresses> It appears that when a text-node contains character entities, SAX breaks the string up in to pieces that for some reason aren't all processed by XUpdate, only the first part is. If this is true it is a bug in XUpdate. greetings, Jeroen | -----Original Message----- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED] | Behalf Of Lars Martin | Sent: woensdag 17 april 2002 15:32 | To: [EMAIL PROTECTED] | Subject: Fw: XUpdate and the '&' character | | | | Hi all, does somebody know an answer? | | Begin forwarded message: | | Date: Wed, 17 Apr 2002 11:19:07 +0100 | From: "Jonathan R. Thorpe" <[EMAIL PROTECTED]> | To: "Xindice-Dev" <[EMAIL PROTECTED]> | Subject: XUpdate and the '&' character | | | Hi! | | I_m attempting to use XUpdate to update a node in our | Xindice database and I | _m having the following problem: | | I_m using the following XUpdate: | | <xu:modifications version="1.0" | xmlns:xu="http://www.xmldb.org/xupdate"> | <xu:update | select="//RootNode/TestNode">http://myserver.cgi?parameter1=m | ine¶meter2= | 0</xu:update> | </xu:modifications> | | to update the contents of the node TestNode. When I query | the database to | see whether the update has been successful I find that the | node text has | been truncated from the _&_ onwards i.e. it has been updated to | http://myserver.cgi?parameter1=mine <http://myserver.cgi/?parameter1=mine> and not http://myserver.cgi?parameter1=mine¶meter2=0 <http://myserver.cgi/?parameter1=mine¶meter2=0> as expected. I_ve tried replacing the _&_ with _&_ in the XUpdate query to see if that makes any difference_and it doesn_t! Can anybody suggest a way that I can update this node successfully? Thanks in advance, Jonathan Thorpe Sony BPRL Basingstoke UK -- ______________________________________________________________________ Lars Martin mailto:[EMAIL PROTECTED] SMB GmbH http://www.smb-tec.com ---------------------------------------------------------------------- Post a message: mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED] Contact administrator: mailto:[EMAIL PROTECTED] Read archived messages: http://archive.xmldb.org/ ---------------------------------------------------------------------- ---------------------------------------------------------------------- Post a message: mailto:[EMAIL PROTECTED] Unsubscribe: mailto:[EMAIL PROTECTED] Contact administrator: mailto:[EMAIL PROTECTED] Read archived messages: http://archive.xmldb.org/ ----------------------------------------------------------------------
