Hi

I'm using BaseX in embedded mode (no database) and need to transform an xml payload that contains elements containing string-encoded xml in this form

...
<str>&lt;objectInstance fetchDate="2014-02-14T13:00:53.374+01:00"&gt;
               &lt;createdDateTime&gt;2012-12-04T08:55:26.195Z&lt;/createdDateTime&gt;
               &lt;/objectInstance&gt;</str>
...

I have both tried using xquery update (copy, modify) and with a simple identity-transform function that intercepts the <str/> element and replaces it with the results of parse-xml(.) 

When executing the query in BasexGUI both solutions performs very well. However if i invoke it via the QueryProcessor in my java-process it is 50 to 100 times slower.

Any clues to what i might be missing?

Regards,
Johan Mörén