Solved XML Usage

Ethanol

New Member
Member
Dec 13, 2014
2
0
1
40
Hello, I just started in Python so sorry if I'm asking a noob question.

I started to write a kits plugin. But I want to store my data in a XML file instead of an INI like most plugins do. INI files are for configuration not for data and useless for a more detailed data structure. I tried to build a script with the xml.etree.ElementTree class but when I upload it to my server i get this error:

Code:
System.MissingMemberException: 'LightException' object has no attribute 'etree'
It seems I can't import xml.etree. Is Fougerite not supporting this functionality? And if not is there a good replacement for this to write XML (or JSON/Any other good format) .
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
Hello, I just started in Python so sorry if I'm asking a noob question.

I started to write a kits plugin. But I want to store my data in a XML file instead of an INI like most plugins do. INI files are for configuration not for data and useless for a more detailed data structure. I tried to build a script with the xml.etree.ElementTree class but when I upload it to my server i get this error:

Code:
System.MissingMemberException: 'LightException' object has no attribute 'etree'
It seems I can't import xml.etree. Is Fougerite not supporting this functionality? And if not is there a good replacement for this to write XML (or JSON/Any other good format) .
http://fougerite.com/resources/ironpython-extra-libs.78/