Returns a document node. @param name name of the document @return reference @throws XQueryException exception
(final String name)
| 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. |