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...