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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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