Menu

#11 print methods: replaces " />" by "/>"

open
nobody
None
5
2004-06-22
2004-06-22
No

concerning tinyxml-version 2.3.0:

the print methods for nodes and xml declaration end tags by

" />"

While the trailing space character does not violate any
official standard it is not very common. We noticed it
by a failure of our regression tests when we switched
to tinyxml.
The following methods in tinyxml.cpp are patched:
TiXmlElement::Print, TiXmlDeclaration::Print and
TiXmlDeclaration::StreamOut.

Discussion

  • Volker Börchers

    print methods: replace " />" by "/>"

     
  • Crispy

    Crispy - 2004-09-27

    Logged In: YES
    user_id=869295

    I've read several (unofficial) pieces of XML documentation
    that recommend that the space be included, for
    compatibility. So I think it's more common that you realise.
    I've yet to find a parser that cares either way, though.

     

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.