Hi Wyatt, Do you have to use xdmp:unquote for a particular reason? Otherwise you could do something like this:
<exception message="one of '{{"http://www.w3.org/1998/Math/MathML":semantics}}' is expected."/> Kind regards, Geert > drs. G.P.H. (Geert) Josten Consultant Daidalos BV Hoekeindsehof 1-4 2665 JZ Bleiswijk T +31 (0)10 850 1200 F +31 (0)10 850 1199 mailto:geert.jos...@daidalos.nl http://www.daidalos.nl/ KvK 27164984 P Please consider the environment before printing this mail. De informatie - verzonden in of met dit e-mailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. > From: general-boun...@developer.marklogic.com > [mailto:general-boun...@developer.marklogic.com] On Behalf Of > Wyatt VanderStucken > Sent: woensdag 3 maart 2010 19:32 > To: General Mark Logic Developer Discussion > Subject: [MarkLogic Dev General] Escaping text? > > I've been banging my head trying to figure this out - any > ideas would be much appreciated.... > > let $ex as xs:string := '<exception message="One of > ''{"http://www.w3.org/1998/Math/MathML":semantics}'' > is expected."/>' > return xdmp:unquote($ex) > > Always gives error "SystemID: XDMP-DOCSTARTTAGCHAR: > xdmp:unquote("<exception message="One of > '{"http://www.w3.org/1998/M...") -- Unexpected character > "/" in start tag at line 1" > > I've tried a variety fn:replace calls, but haven't yet found > the magic... > > Thanks, > Wyatt > > _______________________________________________ General mailing list General@developer.marklogic.com http://xqzone.com/mailman/listinfo/general