
Re: New Stuff for TWXProxy Comments/Flames needed.
Hate to reply to my own post but I don't really want to open up another thread
This is about the TWX XML format that Attac and Swath have developed that TWX Proxy never got around to implementing.
Do we want to implement that... My feeble attempt to use parts of the XML spec shows me that it can be done w/o too much
trouble or hair loss but I just used what I wanted and made very little attempt to follow the XSD file. I am having problems finding
an example of using an XSD file to create the XML file. If that is even the correct way to use the XSD file.
My XML experience is limited I did a little work with XML in the KWrite program under KDE/Linux back in the stone age so I am finding that
I have to relearn.
I have strayed from the spec in my implementation by adding an attribute Index to the <Sector> element which corresponds to the sector number which after further review is represented by the field Nr in the original XSD.
The relevant parts of the XSD I used are the SectorData subelement and added some restrictions on the Fuel/Org/Equ triplets where the percentages can't be over 100 and less than 0 I think I have also set up another restriction on the Warp field where the value has to be between 1 and 20000.
My order of elements might not be the "correct" way but we can always fix that later.
Right now this is just to show that we can extend TWXProxy to allow other programs access to the database and in the future possibly having TWXSync like capabilities built in to TWXProxy.
But for now if anyone wants the changes they are under
https://svn.twxscripts.com:8443/svn/mai ... hes/MANIACMy code has been added to the SVN and while I am not too proud of it; It does seem to work reasonably I am not sure if I have incorporated the Win 7 changes that Elder has committed but will try and merge my code with his and see.