marklogic Very simple CRUD examples for XML documents Read/access our sample document

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

If we know the desired URI of the document we are looking for:

fn:doc("/stuff/mysimpledocument.xml")

Returns the full document from the database, using the URI to locate it.

Since this is XQuery, we can use XPath to find the document when we know about the structure, but not the URI:

/my-document

Returns the element "my-document" and its contents...



Got any marklogic Question?