MCPcopy Create free account
hub / github.com/BaseXdb/basex / document

Method document

basex-tests/src/main/java/org/basex/tests/bxapi/XQuery.java:138–145  ·  view source on GitHub ↗

Returns a document node. @param name name of the document @return reference @throws XQueryException exception

(final String name)

Source from the content-addressed store, hash-verified

136 * @throws XQueryException exception
137 */
138 public XdmValue document(final String name) {
139 try {
140 return XdmItem.get(qp.qc.resources.doc(new QueryInput(name, qp.sc),
141 QueryResources.DOC_OPTIONS, qp.qc.user, null));
142 } catch(final QueryException ex) {
143 throw new XQueryException(ex);
144 }
145 }
146
147 /**
148 * Adds a document.

Callers 1

testCaseMethod · 0.95

Calls 2

getMethod · 0.95
docMethod · 0.45

Tested by

no test coverage detected