OPS and eXist database

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

OPS and eXist database

damien.peymirat
Hi,

   I'm a beginner in OPS and I try to do an interface to upload an XML file and to store it in an eXist DataBase. I look at the XML:DB Sandbox and understand how to store an xml file (which is stored on the server) in eXist. However, I would like to import an XML file which is not on the server with "upload" and store it in eXist. Could you help me please ??

Sorry for my poor english

Thanks a lot for your help



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: OPS and eXist database

Hank Ratzesberger
Damien,

There is an example file upload :

http://www.orbeon.com/ops/goto-example/xforms-upload

(which is a little complex because it uploads up to
three files by one of three methods and the
"main-submission", determines which of three ways to
handle the upload, but...)

Look at the do-db-upload.xpl pipeline which receives as
input the uploaded file and inserts to a database.

Instead of the sql processor, your xml submission will
call the xmldb-insert processor:

<p:param name="my-upload" type="input"/>

<p:processor name="oxf:xmldb-insert">
  <p:input name="datasource" href="datasource.xml"/>
  <p:input name="query">
    <xdb:insert collection="/mydb/mydocs" create-collection="true" resource-id="mydocs"/>
  </p:input>
  <p:input name="data" href="#my-upload"/>
</p:processor>

Sorry I don't have a snippet for your xml-submission, but
I hope that's a start,
Hank Ratzesberger

Goleta, CA


----- Original Message -----
From: <[hidden email]>
To: <[hidden email]>
Sent: Tuesday, July 11, 2006 7:15 AM
Subject: [ops-users] OPS and eXist database


> Hi,
>
>   I'm a beginner in OPS and I try to do an interface to upload an XML file and to store it in an eXist DataBase. I look at the
> XML:DB Sandbox and understand how to store an xml file (which is stored on the server) in eXist. However, I would like to import
> an XML file which is not on the server with "upload" and store it in eXist. Could you help me please ??
>
> Sorry for my poor english
>
> Thanks a lot for your help
>
>


>
> --
> 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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>




--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws