Search code examples
marklogicmarklogic-9oxygenxml

writing xquery that can search all documents in marklogic using oxygenXML


I'm using marklogicn 9.0-8 on windows 10. I have oxygenXML editor 21 enterprise version. I want to use oxygen connecting to marklgoc, then I can write xquery code inside oxygen, this xquery code can search/look at all the documents inside marklogic database through the connection, not just doing transform for one xml file.

I'm not sure how to configure the oxygen to marklogic and how to make it work. It seems that I wrote an xquery code, and when I run it, it always ask for an xml file to do transform. But I want the xquery code to just run against all the documents inside the marklogic database.

Does anyone have any resources/videos that can show how to do this? I'm not even sure if oxygenXML can support xquery to work on all documents inside marklogic database.

Thanks, helen


Solution

  • The first thing you must do is to create an MarkLogic connection. Afterwards, create or open an XQuery file. Create an XQuery transformation scenario and make sure to select the name of the MarkLogic connection as the "Transformer". Afterwards, just run the transformation scenario and the XQuery will actually query the database.

    The Xpath/XQuery Builder view in Oxygen can also be used to execute queries against the MarkLogic server.