hi all,
The code below runs perfectly on PC:
=====================================
from elementtree.ElementTree import Element
from elementtree.ElementTree import SubElement
from elementtree.ElementTree import parse
from elementtree.ElementTree import ElementTree
xmlFile = "c:\\database.xml"
tree = parse(xmlFile)
=====================================
However, on the emulator, (i am using sdk s60 2nd 3fp, with elementtree module)
when i try to run the code above, the console pops out:
No such file or directory"c:\\database.xml"
Is there any specific location that I should copy the xml to , so that the console could find it? I have tried to copy the xml file to where all the python scripts are placed, but it still does not work.![]()

Reply With Quote



