Parsing the .xml files

Freeform discussion about anything related to modding Transcendence.
Post Reply
void
Anarchist
Anarchist
Posts: 8
Joined: Fri Sep 22, 2006 3:04 pm

Hello,

My python parser tools (expat) are having kittens when they try to parse undefined entities (&svAres; for example). I am unaware of a python library that will just *parse* them without complaint.

This is solveable by providing DTDs for the .xml files. Are there any?

Those of you that parse the .xml files looking for various stats, what do you use?

Thanks.
Burzmali
Militia Commander
Militia Commander
Posts: 395
Joined: Tue Aug 15, 2006 12:14 am

I wrote my own in JAVA. The solution to the DTD problem for me was to use the original DTD for the resolving the enitities in the modules. I haven't released a full version yet, but I can look into releasing a version that would simply compile the xml in to a DOM object if you would like.
void
Anarchist
Anarchist
Posts: 8
Joined: Fri Sep 22, 2006 3:04 pm

Are you referring to releasing the DTD or your Java code? I'd be more interested in the DTD :)
Burzmali
Militia Commander
Militia Commander
Posts: 395
Joined: Tue Aug 15, 2006 12:14 am

All the DTD you need to parse the xml of each of the modules is in the beginning of the transcendence.xml file.
Post Reply