Another way of putting this is that if your requirements are to have a "XML" document like
<doc>&</doc> Your requirements are impossible to fulfill, marklogic or not. Such a "document" is not a valid XML document, and could not be parsed by ANY conformant XML processor. Now if your requirements are more like "Store a 'document' that looks like <doc>&</doc>" That is perfectly possible in MarkLogic, store it and retrieve it as text (or binary), which it is. But its not XML. ----------------------------------------------------------------------------- David Lee Lead Engineer MarkLogic Corporation [email protected] Phone: +1 812-482-5224 Cell: +1 812-630-7622 www.marklogic.com<http://www.marklogic.com/> From: [email protected] [mailto:[email protected]] On Behalf Of Geert Josten Sent: Wednesday, February 13, 2013 10:40 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Returning ampersand as & instead of & from ML DB 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]> [mailto:[email protected]<mailto:[email protected]>] Namens [email protected]<mailto:[email protected]> Verzonden: woensdag 13 februari 2013 15:33 Aan: [email protected]<mailto:[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
