Hi Ivan,
Thanks a lot for the answers. That clears my confusion. This was
very helpful.
Regards,
Milind
On Sun, Feb 14, 2010 at 3:18 AM, Ivan Shcheklein <[email protected]>wrote:
> Hi Milind,
>
> 1. How do I load a set of XML documents in a database using just 1 Xquery
>> file?
>>
>
> You can use one se_term script. For example, this script loads three
> documents within one transaction:
>
> *\nac
> load "1.xml" "1"&
> load "2.xml" "2"&
> load "3.xml" "3"&
> \commit
> *
> To execute script run [ *se_term -file script-name database-name* ]
> command.
>
>
>> 2. Is it possible to load all those documents automatically when the
>> database is opened?
>>
>
> I'm not sure if I understand you correctly. Again, you can write shell
> script which starts database and right after that loads documents.
>
>
>> 3. What would be an Xquery command if I want to look at a particular
>> element in all the loaded documents? For example all the loaded documents in
>> my database have an element /bookstore/book/title. What would be the XQuery
>> to list out the contents of this element from all the loaded XML docments?
>>
>
> If you want to query all documents simultaneously load them into collection
> (details here:
> http://modis.ispras.ru/sedna/progguide/ProgGuidesu8.html#x14-470002.5.2 ).
> In this case you may run something like:
>
> *collection("my-collection")/bookstore/book/title*
>
> Ivan Shcheklein,
> Sedna Team
>
--
Milind Gupta
Analog IC Design Engineer
Systems and Power Management Group
Maxim Integrated Products
Sunnyvale
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion