![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Msxml validation error messages >Thread Next - Re: Msxml validation error messages Re: Msxml validation error messagesTo: 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 | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
