Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > DBXML and the Xerces DOM

Thread Tools

DBXML and the Xerces DOM

Posts: n/a
I downloaded Berkeley DB XML and put together a test script to load a
large 250mb XML file into the database. Storage and retrieval works
great, but I need DOM access to the file without loading it all into a
string and re-parsing it. In the c++ api (they used swig to expose c+
+ to python) it says there is a XmlDocument::getContentAsDOM() method,
but when I try to access it via python I just get an attribute error.
I looked in the source and the method isn't mapped at all! Has anyone
had this work, ever?

from dbxml import *

mgr = XmlManager()
container = mgr.openContainer("test.dbxml")
document = container.getDocument('test1')
dom = document.getContentAsDOM()

Traceback (most recent call last):
File "", line 10, in ?
dom = document.getContentAsDOM()
File "/usr/lib/python2.4/site-packages/", line 277, in
__getattr__ = lambda self, name: _swig_getattr(self, XmlDocument,
File "/usr/lib/python2.4/site-packages/", line 28, in
raise AttributeError,name
AttributeError: getContentAsDOM

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Python and Dbxml Raffaele Python 0 03-12-2006 01:46 PM
Comparison between dbxml,tamino and eXist.. Shuch XML 0 01-02-2006 01:15 PM
Upgrade of Xalan 1.2.2 and Xerces 1.4.4 to Xalan 2.6 and Xerces 2.6.2 cvissy XML 0 11-16-2004 07:06 AM
dbXML for VB6 David L XML 0 01-29-2004 09:14 AM
Sleepycat DBXML included? Bob X Python 5 11-10-2003 03:55 PM