How to read a xml file and covert it to python code and run? -
what want read xml file contains python code inside. , run these code.
for example, xml file contains print 'hello world'
i want utilize function such
def runxml(xml):
this function read code xml file , execute it. in case, function runxml print 'hello world'.
appreciate help.
to execute python code python can utilize exec
function, reading xml - didn't provide info xml file structure.
python xml compiler-construction
No comments:
Post a Comment