Am 22.07.2019 um 11:32 schrieb Marco Lettere:
I have to access portions of the XML representation of the BPMN file by binding the engine's API.
The closest that I can get to a standard XML representation is currently a javax.xml.transform.dom.DOMSource.
What is the shortest way to transform (in XQuery) this DomSource to a BaseX representation of the Document in order to query it?
The XQJ API seems to have a method
http://xqj.net/javadoc/javax/xml/xquery/XQDynamicContext.html#bindDocument(j...)
to allow passing in a java.xml.transform.Source so that seems at least one way to deal with a DOMSource. But it happens on the Java side and is tied to that particular XQJ API.