More MSXML Trouble..

Everything else that doesn't fall into one of the other PB categories.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

More MSXML Trouble..

Post 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)
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net