Hi Karthik,
An XML document containing only & in its character data would not be well-formed. MarkLogic would refuse to load it, or will fix the & automatically if you specify so. If you insist on storing the XML as received, and returning it as such, then I guess you will have to store it as a binary. You will need to read/load it with a format option set to ‘binary’, and also insert it with this option. Kind regards, Geert *Van:* [email protected] [mailto: [email protected]] *Namens * [email protected] *Verzonden:* woensdag 13 februari 2013 15:33 *Aan:* [email protected] *Onderwerp:* [MarkLogic Dev General] Returning ampersand as & instead of & from ML DB Hi, I have some documents in MarkLogic DB which has ampersand value stored as & because we can’t insert documents with just “&” character. I have a requirement to retrieve a document and ftp the same. But, when I retrieve the document, I want the “&” converted to “&” because I don’t want the encode value “&” in the file that is sent to the ftp location. Is there any function to convert this value back and forth? Thanks and Regards, Karthik 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.
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
