This small python script invokes the [Treeline](http://treeline.bellz.org/index.html) tree visualizer to display xml files in a pleasant way. ![viewxml](/attachments/large/1/viewxml.png "viewxml")

Member Avatar
+0 forum 0

Hello everyone, this is something I wrote a couple months back. It is used as a universal class/object loader from an XML file. For the handling of XML I use the JDOM library. The story basically goes like this: I have a load of classes in a game I'm working on, going from enemies to items to zones, you name it. That data is written in xml files. Instead of writing a different method for every class and every constructor, what these methods do is: you start with for instance loadItems(File aFile), which takes the xml file for Items as …

Member Avatar
Member Avatar
+1 forum 5

Hi All, I have an xml [CODE] <?xml version="1.0" encoding="UTF-8"?> <columns> <column> <name></name> <displayname></displayname> <attributes> <attribute> <name>width</name> <value>100</value> </attribute> <attribute> <name>text-align</name> <value>left</value> </attribute> </attributes> </column> <column> <name>VersionCode</name> <displayname>Version Code</displayname> <attributes> <attribute> <name>width</name> <value>200</value> </attribute> <attribute> <name>text-align</name> <value>right</value> </attribute> </attributes> </column> <column> <name>MaterialType</name> <displayname>Material Type</displayname> <attributes> <attribute> <name>width</name> <value>100</value> </attribute> <attribute> <name>text-align</name> <value>left</value> </attribute> </attributes> </column> <column> <name>LotNumber</name> <displayname>Lot Number</displayname> <attributes> <attribute> <name>width</name> <value>60</value> </attribute> <attribute> <name>text-align</name> <value>center</value> </attribute> </attributes> </column> <column> <name>RRComplete</name> <displayname>RR Complete</displayname> <attributes> <attribute> <name>width</name> <value>90</value> </attribute> <attribute> <name>text-align</name> <value>center</value> </attribute> </attributes> </column> <column> <name>ReviewerName</name> <displayname>Reviewer Name</displayname> <attributes> <attribute> <name>width</name> <value>80</value> </attribute> <attribute> <name>text-align</name> <value>center</value> </attribute> </attributes> </column> …

Member Avatar
Member Avatar
+0 forum 5

The End.