The main interfaces in DbDom are thos of the Document Object Module. This document will only cover the extensions.
A persistent DOM implementation
Module Summary
Initialize a DbDom 4ODS database
initDomDb connect_string [odlFile]
| Argument Summary | |
| connect_string | The 4ODS connection string with the name of the database (required) |
| odlFile | The installed location of dom.odl. Defaults to the directory that DbDom was installed too. |
Add a document to a DbDom database.
addDbDomDocument connect_string document_name < xmlFile
| Argument Summary | |
| connect_string | The 4ODS connection string with the name of the database (required) |
| document_name | The name to bind this new document too. (required) |
| < xmlFile | The XML source. (required) |
Apply a stylesheet to a document in the DbDom database.
transformDbDom connect_string document_name xslFileName
| Argument Summary | |
| connect_string | The 4ODS connection string with the name of the database (required) |
| document_name | The bound name of the document. (required) |
| xslFileName | The file name of the XSLT document. (required) |
| Class Summary | |
| Reader | A class supporting the DOM reader interface for loading a XML stream into a DbDom. |
A class supporting the DOM reader interface for loading a XML stream into a DbDom.
| Method Summary | |
| fromStream | Create a new Document object from a XML stream. |
| fromString | Create a new Document object from a XML string. |
| fromUri | Create a new Document object from a URI. |
| Method Details |
fromStream(stream)
Create a new Document object from a XML stream.
ParametersReturn Value
streamof type A standard python stream(file, socket, StringIO)
The stream to read from.
None
fromString(string)
Create a new Document object from a XML string.
ParametersReturn Value
stringof type A string
The string of XML to be read from.
None
fromUri(uri)
Create a new Document object from a URI.
ParametersReturn Value
uriof type A URI
A URI that references an XML resource to be read.
None