Azhrei wrote:I'm hoping that I can take some load off of trevor so he can continue to work on the "cool stuff". And maybe I can actually contribute back to MT a little bit!
(I have Eclipse installed on my Mac but haven't used it yet. But I'll try configuring the CVS client and grabbing the code tonight.)
So i've got Eclipse all updated and the MT code checked out.
I started looking around and made some changes to
PersistenceUtil.saveCampaign() and it appears to work!
I had to comment out a couple lines at the top of the function, add two lines to open the XML stream, and then change "os.close" to "out.close" at the bottom of the function, and now I can save my campaign as XML (although I can ONLY save it as XML, since I didn't make any modifications to allow for multiple file types).
If I ZIP the resulting XML, it's actually smaller than the original ".cmpgn" file format! That's a pleasant surprise.
I haven't done any optimization to the XML generation, so the element names are pretty long and pretty ugly. I don't plan to do any of those optimizations, since there isn't much payoff in it.
I'm now going to create a campaign in 1.3 and save that one so that I have something to compare against. Once I have a list of elements in 1.3, I can start writing an XSLT that converts 1.2 to 1.3. I think this may be the longest phase, given that the file is 12MB+ in size.
Does anyone know of a tool that will automate some of this checking? What I'd love is a
diff tool for XML that will tell me which elements are new/removed/modified between two XML files. I'm going to start my search for such a tool now, but I figured it couldn't hurt to ask here first.