See the next section below for a description of the error message and how to fix validation errors with the smart fixes of XMLSpy.
if you do not want these suggestions to be displayed.
Edit: I'm trying Mehrdad's tip, but I'm having trouble. Validation Event Handler = new Validation Event Handler(/*trouble is here*/); Xml Reader validating Reader = Xml Reader.
If no reference exists, an error message is displayed in the Messages window.
As long as the XML document is open, the schema is kept in memory (see Flush Memory Cache in the DTD/Schema menu).
Get Bytes(XML); Memory Stream XMLStream = new Memory Stream(XMLBytes); Xml Reader Settings settings = new Xml Reader Settings(); settings.
Ignore Whitespace = true; // Here's where I don't know quite how to proceed // The code is currently set up for an Xml Reader, // but I'm not sure that's the correct way to go...
You can specify that a document be automatically validated when a file is opened or saved ( command.
If a document is valid, a successful validation message is displayed in the Messages window.
The reason is that XML software should be small, fast, and compatible.
HTML browsers are allowed to display HTML documents with errors (like missing end tags). A "well formed" XML document is not the same as a "valid" XML document. In addition, it must conform to a document type definition.
Validation Event Handler = new Validation Event Handler(Validation Call Back); settings.