It could be PDF or DOC/x, but meta data will be in XML format
From: [email protected] [mailto:[email protected]] On Behalf Of David Lee Sent: Tuesday, August 20, 2013 1:45 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] How to check my file will get process or not I am sorry to be obtuse, but what kind of file are you using that could be password protected or corrupted ? Is this a ZIP file ? a PDF ? ... XML files dont have password protection. I think I am missing a bit of your workflow so having a hard time answering. ----------------------------------------------------------------------------- David Lee Lead Engineer MarkLogic Corporation [email protected]<mailto:[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]> [mailto:[email protected]] On Behalf Of Singh, Gurbeer Sent: Tuesday, August 20, 2013 1:42 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] How to check my file will get process or not User will upload a file with some meta data , this file can be a good file or bad file[password protected/corrupted] I need to save this file in my ML data base in XML format. If a file is a bad file, in that case I need to save only meta data . We have written a pipeline to process this. If user submit a doc in a ML folder [where pipeline is attach] i check weather I am able to extract XML from user document xdmp:document-filter(fn:doc($cpf:document-uri)), if Yes I insert a new document ( meta data + extracted XML) in my ML search folder, If no I need to save only metadata. ~Gurbeer From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of David Lee Sent: Tuesday, August 20, 2013 1:36 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] How to check my file will get process or not Could you explain in more detail what you mean by a password protected file ? Are you refering to WebDav authentication or something else ? ----------------------------------------------------------------------------- David Lee Lead Engineer MarkLogic Corporation [email protected]<mailto:[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]> [mailto:[email protected]] On Behalf Of Singh, Gurbeer Sent: Tuesday, August 20, 2013 1:34 PM To: [email protected]<mailto:[email protected]> Subject: [MarkLogic Dev General] How to check my file will get process or not Is there any way to check weather my file will get process or not. For example If a file is password protected, it turns to error state, and I am unable to do anything after that. Basically my requirement is , if a file is password protected , process only metadata[User will pass meta data with each file] no need to process original file, but how to check that. In my pipeline , I am trying to do some like this declare variable $filtered_document as xs:string := try { xdmp:document-filter(fn:doc($cpf:document-uri))} catch($e) {}; if file is password protected it went to catch, and change to state error .. on-state-enter, after that I am unable to do anything. ~Gurbeer ________________________________ NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing. ________________________________ NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing. ________________________________ NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
