Hello,
I am new to MonetDB. I have performed successful queries on the database without adding the document to the database first. Now, I am adding the document first and attempting to query it. After shredding a document, I am unsure about how to query that document. (such as what command to use) In the documentation, it states as an example to type doc("HelloWorld.xml")/doc/greet. but where??
First of all, thanks for using MonetDB/XQuery!
You can query your document both in Mserver and using MapiClient.
In Mserver, you can use the command "xquery" to execute an xquery
(don't forget to use "print" to get the output on the screan):
MonetDB>xquery("xml", "doc(\"HelloWorld.xml\")/doc/greet").print();
[ "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<XQueryResult>\n