[Montag-users] Re: unexpected char: '&' in query string
Status: Beta
Brought to you by:
sbtourist
|
From: Sergio B. <ser...@gm...> - 2005-08-15 18:46:27
|
On 8/14/05, DL <dl....@nt...> wrote: > =20 > I am trying to invoke montag XQueryService from SOAPscope client ..=20 >=20 > the test query string is as follows ....=20 > =20 > for $speech in //SPEECH[SPEAKER &=3D 'witch' and near(., 'fenny snake= ')] > return $speech=20 > =20 > however I get this fault report ... even though "&" is expressed as "&= ;"=20 [CUT] You do not have to encode the "&" character in XQuery, except when you are inserting it into an XML fragment. So, your query must be: for $speech in //SPEECH[SPEAKER &=3D 'witch' and near(., 'fenny snake')] return $speech Regards, Sergio B. --=20 Sergio Bossa (http://sbtourist.blogspot.com) Author and Lead Developer of: - Montag, Web Services System for XML Database Interaction: http://montag.sourceforge.net - QuickNote: http://quicknote.sourceforge.net |