Menu

Parse error

Lou
2005-11-22
2013-05-20
  • Lou

    Lou - 2005-11-22

    I think this is a know problem but could not find the real answer.

    If I try to parse XML code that has no ending new line character, it fails.

    To me this seems to be a problem. I am parsing the xml received from a webservice made in c# using MS Visual Studio.NET, so I assume the returned XML is compliant and well formed.

    Any ideas on this matter ?

    thanks,
    Lou.

     
    • Lee Thomason

      Lee Thomason - 2005-11-22

      There are many examples, in the test suite, of parsing XML without a newline end character.

      I think you probably have some other bug. Could you post a code snippet?

      lee

       
    • Lou

      Lou - 2005-11-28

      I found 'my' problem. I was assuming the return value of the Parse function would return null when an error occurs.

      Now I use the Error function to check for errors and works fine.

      For the records, this is what happens.
      If there is no end of line char at the end of the xml data, the Parse function will return NULL. After adding an end of line char, the Parse function will not return null.

       

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.