![]() |
|
||||
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
|||||
|
|
||||||
| Other Library Functions | ||||||
| function |
db.document-writer-sedna |
|
Library: Database access (OMDB)
Import: omdb.xmd |
define string sink function db.document-writer-sedna
of value b.database database
name value string document-name
or
define string sink function db.document-writer-sedna
of value b.database database
name value string document-name
collection value string collection-name optional initial { "" }
Argument definitions
Use db.document-writer-sedna to store an XML document into a Sedna database.
Documents can also be stored in collections with a Sedna database.
The document name specified is the name it will have within the database.
This a string sink function and so the document to be stored is streamed
into the function and through it into the Sedna database.
The following program stores an XML document located in the file
"auction1.xml".
import "omdb.xmd" prefixed by db.
process
local db.database my-database
set my-database to db.open-sedna "rhine" dbname "XMLDatabaseDemo" user
"charley" password "chaplin"
using output as db.document-writer-sedna of my-database name "auction1"
output file "auction.xml"
db.close my-database
|
Other Library Functions |
Copyright © Stilo International plc, 1988-2008.