Re: Re: adding elements to existing data

Posted by Erik Bruchez on
URL: https://discuss.orbeon.com/adding-elements-to-existing-data-tp44007p3846074.html

> I've only just come across Orbeon Forms and have never had to use XQuery
> before. Could you please provide an example of how you would do this within
> eXist?

You mean migrating XML data? Not in just 2 minutes, unfortunately.

This said the idea is smilar to any database migration script: write
the script (here written with XQuery), and run it on data that needs
to be migrated. XQuery allows you to select documents in database
collections, iterate over them, read and update those documents. So
all the basic tools to migrate data are in the language.

> We will be doing many form changes that we will want to be retroactive and
> all the open standards in Orbeon look appealing. As long as the changes are
> new elements or leave element identifiers the same this shouldn't break
> anything correct?

It depends which way you go. If you edit old form data with a new
version of the form that has new fields, those fields won't appear,
unless the data has been migrated. If that's acceptable, then great,
otherwise you need to migrate the data first.

-Erik


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws