I need again some help .
One of my modcomps will become so big, that the customizable function definition would become just to big (atm 9 arguments, and that's not the end), so i thought, i should make it customizable by xml.
I've asked one of my fellow students, how to do it, and he said, that there's a standard xml library (name: xml), and this could be used. I've looked a bit in the web, and a book from O Reilly said, that it's minimum in python since 2.0.
The suprise: This library is not included in civ.
Then i've looked at the standard civ python libraries, and there's xmllib availabe, and there's a description available online, which says, that this library has been deprecated in 2.0.
Okay, that doesn't matter, but when i import that library in the CvEventManager, civ will load, but it throws an error, which says, that this library has been deprecated. Yes...great....
So my question here: Does anybody else see an easy way, to read the XML files directly, and not just as plain text?
I hope, somebody has an idea and can help me .
One of my modcomps will become so big, that the customizable function definition would become just to big (atm 9 arguments, and that's not the end), so i thought, i should make it customizable by xml.
I've asked one of my fellow students, how to do it, and he said, that there's a standard xml library (name: xml), and this could be used. I've looked a bit in the web, and a book from O Reilly said, that it's minimum in python since 2.0.
The suprise: This library is not included in civ.
Then i've looked at the standard civ python libraries, and there's xmllib availabe, and there's a description available online, which says, that this library has been deprecated in 2.0.
Okay, that doesn't matter, but when i import that library in the CvEventManager, civ will load, but it throws an error, which says, that this library has been deprecated. Yes...great....
So my question here: Does anybody else see an easy way, to read the XML files directly, and not just as plain text?
I hope, somebody has an idea and can help me .