Loading a document using XQuery in Zorba 1.4

48 views
Skip to first unread message

tojo.urs

unread,
Jun 18, 2012, 10:18:40 AM6/18/12
to zorba...@googlegroups.com
Hello everyone !
We still use Zorba 1.4 for compatibility reasons. One question : what was the XQuery equivalent of XmlDataManager::loadDocument() ?
After loading the document into memory, I would like to retrieve it using fn:doc().

Thanks !

William Candillon

unread,
Jun 18, 2012, 2:19:22 PM6/18/12
to zorba...@googlegroups.com
Hi Tojo,

In Zorba 2.2 you can use xml:parse() to parse and XML document and later access it via fn:doc().
In 1.4, this is not possible to do in the XQuery userland. As a work around you can store the document in a XQDDF collection.

Do you plan on migrating to 2.x?

Kind regards,

William



--
You received this message because you are subscribed to the Google Groups "Zorba Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/zorba-users/-/DUhJZ9rJWxkJ.
To post to this group, send email to zorba...@googlegroups.com.
To unsubscribe from this group, send email to zorba-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/zorba-users?hl=en.

Reply all
Reply to author
Forward
0 new messages