Hi,
The python samples pass an simple xml string to create or add:
session = BaseXClient.Session('localhost', 1984, 'admin', 'admin')
session.create("database", "<x>Hello World!</x>")
but how can I request the server to open a file or a directory?
Basically
session.create("database", “c:/tmp/myfile.xml")
returns the following error message: "database.xml" (Line 1): No text allowed before root element.
Thanks in advance for tips
Laurent Le Meur