Page 1 of 1

More MSXML Trouble..

Posted: Wed Aug 25, 2004 5:10 pm
by Karbon
I'm using the code below to report errors upon loading an XML/XSL document. It always gives me nothing, no matter what.. The text vars are emtpy, the int vars are always 0..

Any help appreciated!

Code: Select all

  oXML\get_parseError(@oError.myIXMLDOMParseError)
  oError\get_errorCode(@errorcode.l)
  oError\get_reason(@xml_error_reason.l)
  oError\get_srcText(@xml_error_srctext.l) ;
  oError\get_line(@xml_error_line) ; 
  oError\get_linepos(@xml_error_linepos) ; 

  error_message.s = "XML Parser Error"+#CRLF$+#CRLF$
  error_message + "Reason : " + Uni2Ansi(xml_error_reason) + #CRLF$
  error_message + "Source : " + Uni2Ansi(xml_error_srctext) + #CRLF$
  error_message + "Line : " + Str(xml_error_line)
  error_message + "Character : " + Str(xml_error_linepos)
  
  error_log(error_message)