Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Msxml validation error messages

From: "Thomas Malia" <tommalia@--------.---.--->
To: NULL
Date: 6/2/2006 11:49:00 AM

the err object returned by the MSXML has a Reason property that gives a text 
explaination of the error.  The object also has other useful properties that 
may or may not be populated with useful information depending on what was 
actually validated.  For example, errors generated while loading an XML file 
will have Line property that tells you which line in the text file the error 
occured on.  Also, you can get the "XPath" of the error if it's a schema 
validation error (as apposed to a mal-formed XML) an that would give you the 
exact location on the DOM that had the problem.

You might also want to investigate the use of:
 xmlDocuments.setProperty "MultipleErrorMessages", True

With this option turned on, you don't just get the last error, you get an 
array of all the errors that you can then iterate through.

"Alexis Nikichine" <alexis.nikichine@s...> wrote in message 
news:O%23zVmBihGHA.3904@T......
> Alexis Nikichine wrote:
>> Hello,
>>
>> Is there somewhere a list of all possible DTD/Schema validation error 
>> messages that can be returned by MSXML, if possible with their error 
>> codes (the weird numerical constants -1072898024, -1072898028, and their 
>> likes) ?
>>
>> At the very least, could anybody point me to the files that holds the 
>> MsXml string bundles ? The MsXml*.dll, as they are installed in 
>> %windir%\System32 do not seem to contains error message strings.
>
> Ok, I finally cound find every answers myself:
>
> 1. string are utf16 encoded in resource bundle, so knowing that, I could 
> et last locate error messages in msxml4r.dll
>
> 2. error messages are listed (exhaustively ?) in the documentation of the 
> validate method.
>
> Cheers,
>
> Alexis 




transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent