Menu

Questions about handling empty documents.

Anonymous
2003-05-21
2003-06-11
  • Anonymous

    Anonymous - 2003-05-21

    Greetings,

         I tried loading a file containing only 5 ' ' (space) characters and Parse accepted it.  I had assumed that this file would be equivalent to an empty file, and would therefore result in TIXML_ERROR_DOCUMENT_EMPTY.   Stepping thru the code it appears that a check for (*p ==0) is missing.

    Also, when I tried loading a truly empty file I get false returned, but the error description is not set (seems like it again ought to be TIXML_ERROR_DOCUMENT_EMPTY).  In this case it seems that a call to SetError is missing.

    Greg

     
    • B Sizer

      B Sizer - 2003-06-11

      Which part of the code do you think is missing the check? (That'll save time in fixing it.)

       

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.