Simple answer: "no" XML must be loaded into the database to be queried.
Complex answer: "it depends" Using various tools you can bring XML into marklogic then query it. For example using XCC (say with a tool like xmlsh (www.xmlsh.org)) you can bring XML into ML as a string then convert it to XML and query it. Similarly from within XQuery you can access files from the file system, load them into ML and query . Question: Where are your files compared to your marklogic server ? Question: Do you have a cluster or a single ML server ? Question: Do you need ML to query the files or are you willing to use a hybrid like Saxon to query local files then ML to query DB files ? Why or why not ? Question: Why are your XML files not in MarkLogic ? Similar if you had an RDBMS like Oracle or MySQL would you expect it to query data not in the database ? Why or why not ? ----------------------------------------------------------------------------- David Lee Lead Engineer MarkLogic Corporation [email protected] Phone: +1 650-287-2531 Cell: +1 812-630-7622 www.marklogic.com<http://www.marklogic.com/> This e-mail and any accompanying attachments are confidential. The information is intended solely for the use of the individual to whom it is addressed. Any review, disclosure, copying, distribution, or use of this e-mail communication by others is strictly prohibited. If you are not the intended recipient, please notify us immediately by returning this message to the sender and delete all copies. Thank you for your cooperation. From: [email protected] [mailto:[email protected]] On Behalf Of Gary Larsen Sent: Friday, July 20, 2012 1:05 PM To: 'MarkLogic Developer Discussion' Subject: [MarkLogic Dev General] query external files? Hi, Is it possible to query XML data in external files in a CTS query? (similar to Saxon) This sounds stupid, but before a conversion to MarkLogic I had to minimize the database size and kept XML data that wasn't queried on the file system. This data will eventually be loaded, but now would like retrieve some elements from these files. Thanks, Gary Larsen Envisn Inc. 978-779-0400 x202 508-259-6465 (cell)
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
