following works fine:
XMLDocumentManager docMgr = client.newXMLDocumentManager();
JAXBContext context = JAXBContext.newInstance(Document.class);
JAXBHandle jaxbHandle = new JAXBHandle(context);
docMgr.read(
"/masters/1337-12/t/1439-1074_2013_2_toc.xml",
jaxbHandle);
Assert.assertNotNull(jaxbHandle);
Document document = (Document) jaxbHandle.get();
But what I can do if I don't know the document URI and I have to do a search like following:
StructuredQueryBuilder qb = new StructuredQueryBuilder(
"OPTIONS_NAME");
StructuredQueryDefinition querydef = qb.valueConstraint("tocId",
tocId);
// contains RAW data -
StringHandle resultsHandle = queryMgr.search(querydef, new StringHandle());
How can I transform this result with JAXB?