---------- Forwarded message ----------
From: Taranov Ilya
Subject: Re: Sedna: Adding Multiple XML files to a single document - ERROR
SE2001
To: stephen.brea...@net-m.co.uk
Cc: se...@ispras.ru
Hello Steve,
There is no way to load many xml files into a single document. And it is not
quite clear why you would want to do that.
But perhaps what you want is collection. You can create a collection by:
CREATE COLLECTION "mycol"&
LOAD "1.xml" "1" "mycol"&
LOAD "2.xml" "2" "mycol"&
After that collection may be queried just like document:
collection('mycol')//some-nodes&
Please read Sedna documentation (especially this:
http://modis.ispras.ru/sedna/c-samples.html#loadcol) for more information on
collections.
Ilya.
> Hello
>
> Please forgive me if this is a silly question, but I am quite new to the
> concept of an XML database.
>
> I have multiple XML files that all follow the same schema. I want to add
> all these files to the same document.
> I am trying to do it like this (via se_term):
>
> CREATE DOCUMENT "mydoc"&
> LOAD "1.xml" "mydoc"&
> LOAD "2.xml" "mydoc"&
>
> But the load statements produce:
> SEDNA Message: ERROR SE2001
> Document with the same name already exists.
> Details: mydoc
>
> Is there some "easy" way to add all these XML files to the same
> document? Do I have to perform an UPDATE for each file?
>
> There are literally thousands of files, so I assume an UPDATE for each
> will be quite slow to process...
>
> Any help would be greatly appreciated.
>
> Thanks
> Steve
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Sedna-discussion mailing list
Sedna-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sedna-discussion