473,378 Members | 1,405 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

DBXML and removeDocument in Python

I am trying to add and remove documents in a container in Berkeley/
Oracle DB XML within Python, on Mac OS X Leopard. putDocument works
fine, but I keep getting 'attributeError' when I try removeDocument.
I can't find any documentation on removeDocument in Python and it is
not in the examples.py.
My code looks like:

results = p.query('//page[@id="I-57-1r"]'
xc = p.getcontainer()
xm = p.getxmlmanager()
uc = xm.createUpdateContext()
if results.hasNext() is True:
#delete the document!
xc.removeDocument('57-1r', uc)
#add a new document with the same name
xc.putDocument('57-1r' , '<page id="I-57-1r"/>, uc)

Put document works fine. I can remove the document using
removeDocument from the shell, but not from within Python. Help...
Peter Robinson: pe***@sd-editions.com
Scholarly Digital Editions
12 The Old Silverworks
54a Spencer Street
Jewellery Quarter
Birmingham B18 6JT
fax: 44 (0) 121 275 6212
Jun 27 '08 #1
0 746

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Bob X | last post by:
I read on the Sleepycat site that dbXML was included in the 2.3 release. I downloaded the latest from the Python site but get a traceback when trying to import it. Was it removed? Can I get it...
0
by: Roger Espinosa | last post by:
I'm attempting to install dbxml-1.10 on OS X 10.2.8 (gcc3.x prerelease, Python 2.3.2 built on same), and while everything builds happily, when I try to invoke import dbxml Python just ......
0
by: David L | last post by:
I am looking for ways to bind Windows VB6 applications to the Berkeley dbXML database but I do not know C++. Anyone done something similar and have experience to share?
0
by: Shuch | last post by:
Hi all, i have a few questions: 1) i would like to know if someone knows the difference between dbxml,tamino and eXist???even if its just the main comparisons.... 2) how can i find the benchmark...
0
by: Raffaele | last post by:
Hi all, is here anyone who can help me with python and Dbxml??? I've tried the example of python that I found in dbxml\docs\...., but I don't understand how to use XMLResolver. I'm new in...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.