There are two approaches you can use to migrate documents between the Java-based XQL processor to the native XML processor:
You can use the text form of the documents, if it is available.
You can generate a text version of the documents from the parsed form of the documents.