session = BaseXClient.Session('localhost', 1984, 'admin', 'admin')
session2 = BaseXClient.Session('localhost', 1984, 'admin', 'admin') session2.execute("check database")
query = session.query("collection('database')")
for code, item in query.iter(): //some item modification session2.replace("{}.xml".format(item_path), modified_item)
The execution of the script stops after the first iteration. How can I read and change data in a single cycle? FYI: for a small database, this works correctly.