PrimalXML schema validation fails
Posted: Mon Aug 30, 2010 5:41 am
With latest XML 2009 I get weird schema validation faliures. I do not get these failures with Visual Studio and other XML validation tools.
Here is a ZIP example that shows two or three modes of failure.
uploads/2497/testme.zip
contains testme.xml and testme.xsd which has been generated fom the xml so it should be an exact match.
Load xml then select validate and choose xsd to see error. If you fix errors as they are displayed the error will just move further into document.
Removing comments fixes one layer of errors but then another set of odd errors occur:
Parser Errors:
MS Parser reported this error:Code = 0xc00ce014Source = Line : 15 Char : 3aError Description = Element content is invalid according to the DTD/Schema.Expecting: txt.
Source text where the error occured:
<attr name="IMPACT" value="POSSIBLE INSTANCE FAILURE"/>---------------------------------------------------------^
Copying items from teh 'Output' Window is extremely unreliable and difficult.
Here is a ZIP example that shows two or three modes of failure.
uploads/2497/testme.zip
contains testme.xml and testme.xsd which has been generated fom the xml so it should be an exact match.
Load xml then select validate and choose xsd to see error. If you fix errors as they are displayed the error will just move further into document.
Removing comments fixes one layer of errors but then another set of odd errors occur:
Parser Errors:
MS Parser reported this error:Code = 0xc00ce014Source = Line : 15 Char : 3aError Description = Element content is invalid according to the DTD/Schema.Expecting: txt.
Source text where the error occured:
<attr name="IMPACT" value="POSSIBLE INSTANCE FAILURE"/>---------------------------------------------------------^
Copying items from teh 'Output' Window is extremely unreliable and difficult.