Returns the serialized XML value. @param context context node @return XML string @throws IOException I/O exception @throws QueryException query exception
(final Item context)
| 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. |