|
JohnD -> RE: validate xml and remove invalid nodes (4 March 2008)
|
Vabbs, validating against a schema will tell you that something is wrong, but you will need to edit the instance some other way - for example using an XmlDocument. I don't think there is any kind of "auto correcting" function available. Also, the schema validation will be able to you simple things (such as this element is empty) but it will not tell you other faults (such as this record already occurred). So, (IMHO) to fix any errors you will need to edit the document in code, and to detect some sorts of errors you will also need to be in code. John D.
|
|
|
|