Problem with axis webservice

ta5ta5 Member Posts: 1,164
Hi

We have a strange parsing error in a xml file (actually the result message from a webservice):
..snip
CREATE(xmlDoc);
xmlDoc.load('c:\temp\searchResult.xml');
xmlParseError := xmlDoc.parseError;
IF xmlParseError.errorCode <> 0 THEN BEGIN
ERROR('Error %1\%2\%3\%4\%5',
xmlParseError.errorCode,
xmlParseError.reason,
xmlParseError.line,
xmlParseError.linepos,
xmlParseError.filepos);
END;
..snip
If xmlDoc is 'Microsoft XML, v6.0'.DOMDocument60, then it throws the error "-1072897995" saying xsi:nil is now allowed.
If xmlDoc is 'Microsoft XML, v6.0'.DOMDocument30 it works.

The XML File is the return data from a IBM Axis webservice. If it is necessary, we can use DOMDocument30 of course, but anyway it's strange why the error is thrown at all. In xmlSpy and IE7 the file is validated ok.

This is the "offending" line in the xml file:
<detailText xsi:nil="true" />

Thanks in advance
Thomas

Comments

  • ara3nara3n Member Posts: 9,256
    have you tried to google it?
    I'm sure there is a property in xmldom that would ignore it.

    You could also try to remove it from xml file.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • ta5ta5 Member Posts: 1,164
    ara3n wrote:
    have you tried to google it?
    I'm sure there is a property in xmldom that would ignore it.

    You could also try to remove it from xml file.

    Yes, but I was not successful...
    Anyway, it's in production now (as DOM Document 3.0), works like a charm.
Sign In or Register to comment.