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

Method xml

basex-core/src/main/java/org/basex/core/parse/XMLParser.java:215–219  ·  view source on GitHub ↗

Returns the serialized XML value. @param context context node @return XML string @throws IOException I/O exception @throws QueryException query exception

(final Item context)

Source from the content-addressed store, hash-verified

213 * @throws QueryException query exception
214 */
215 private String xml(final Item context) throws IOException, QueryException {
216 try(QueryProcessor qp = new QueryProcessor("node()", ctx).context(context)) {
217 return qp.value().serialize().toString().trim();
218 }
219 }
220
221 /**
222 * Returns the string value of the executed query.

Callers 1

commandMethod · 0.95

Calls 5

toStringMethod · 0.65
contextMethod · 0.45
trimMethod · 0.45
serializeMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected