Menu

2.5 BETA

Developer
2006-08-14
2013-05-20
  • Lee Thomason

    Lee Thomason - 2006-08-14

    The 2.5 beta adds a couple of great changes to tinyxml, but let me start with words of thanks:

    Ellers (one of your TinyXML developers) had originally proposed a Visit() API. He submitted a great patch that implemented the Visit() API via templates.

    We had intended to propose something reasonable, and then open the feature to more of a community discussion.

    That code, as well as my own experimenting with PrintToMemory, was the beginning of the large developer threads on how to implement this.

    John-Philip (seriema) submitted a bunch of suggestions and another implementation of the Visit() API, this time based on C++ interfaces.

    Lots of people have contributed ideas and feedback. I'm very happy at how well the community review has worked, and very thankful for both Eller's and JP's contributions.

    What's in 2.5?

    1. The Visit() API adds a SAX/callback/Visit() interface to examine all the nodes of the XML tree. It's very useful for certain types of problems - check out the new TiXmlVisitor class and the Accept() method.

    2. TiXmlPrinter. Not only does output now support (limited) formatting, but the non-STL folks now have print to memory support.

    I like the TiXmlPrinter (originally written by JP) so much that I pulled out the implemenation of Streaming (operator<<) and re-wrote it on the TiXmlPrinter. It's less code, more re-usable, and cleaner logic.

    Check out the beta, and please post any feedback.

    thanks,
    lee

     
    • Steve Hyatt

      Steve Hyatt - 2006-08-16

      Hi.

      In the xmltest.cpp app there is

       
    • Steve Hyatt

      Steve Hyatt - 2006-08-16

      Hi.

      In the xmltest.cpp app there is a 'Low entities' which appears to validate a hex value of '#0e'.  This happens to be the 'shift out' character, which causes the test to output gibberish under my Linux terminal.

      Could this value be changed to '#0f' for instance?  Then the test would output as expected.

      Steve

       

Log in to post a comment.