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