Menu

bug and method of reproducation

ion pulse
2003-11-14
2003-11-14
  • ion pulse

    ion pulse - 2003-11-14

    Bug: TinyXML screws up formatting of a XML document loaded from a file when you save it out again. (ie: the saved file does not match the inputted one, and is also not legal XML, tinyXML can NOT re-read it in without crashing and not outputting an error either...)

    Problem? Comments such as:
    <?-- This is a comment in XML -->
    Get turned into:
    ?-- This is a comment in XML --

    the <?-- --> syntax I just copied from the documentation that comes with tinyXML. But then I look in the tinyXML test .cpp files, and see that they use a <!-- --> label for their comments.

    Those work, but the <?-- --> ones that come from the main documentation do not.

     
    • Yves Berquin

      Yves Berquin - 2003-11-14

      FYI, <? ... ?> is not a comment in XML. They are processing instruction (PI) like the very first (optional) item in an XML file :
      <?xml version='1.0'?>
      See http://www.w3.org/TR/REC-xml#sec-pi

      The only valid comment in XML are <!-- .... -->

      Thank you for pointing out the mistakes in the documentation. This is the one that need to be fixed

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.