Hi Team,
Today am facing some strange behavior in xdmp:unquote function. I tested the
below sample code . it's returning error for entity reference <, but remaing
4 working fine. Is this expected bug in ML. or am I missing something in the
code.
let $data := text{'<story id="1">
<data>XML Entity reference Test</data>
<data1>XML entity 1. & </data1>
<data2>XML entity 2. ' </data2>
<data3>XML entity 3. " </data3>
<data4>XML entity 4. > </data4>
<data5>XML entity 5. < </data5>
</story>'}
return
xdmp:unquote(fn:concat("<a xml:space
=""preserve"">",$data,"</a>"),"",("repair-full"))
the XML content coming as string , so we are using this unquote function to
make it as XML content. Kindly help on this issue .
By
Raja>>>
This e-mail and any files transmitted with it are for the sole use of the
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient(s), please reply to the sender and
destroy all copies of the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email,
and/or any action taken in reliance on the contents of this e-mail is strictly
prohibited and may be unlawful. Where permitted by applicable law, this e-mail
and other e-mail communications sent to and from Cognizant e-mail addresses may
be monitored.
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general