Quote:
quote:Originally posted by jacob
Well, thanks and sorry for this late reply!
|
No problem, it was your question.
Quote:
quote:
So you are saying that the words wellformed refer to syntax in a possible XML document (missing endings etc), and a valid XML document refers to the structure according to some scheme, say MS or W3C style?!
|
Yes, except that it is valid according to a
schema. This normally means an xml schema which are usually files with an xsd extension. Microsoft also had data reduced schema which had an xdr extension but these are falling out of favour. It could also be validated against a DTD.
Quote:
quote:
I did all the referencing in the XML document, but thought that IE would read the reference to the schema and then validate the XML document before showing it, and I have now learned that this is not the case!
|
Exactly.
Quote:
quote:
A have been busy reading about the schemas, and I think I have found the exact thing I was looking for. I thought that IE was doing the parsing, however I have found that you have to do an application that does the actual parsing e.g using the class XmlValidatingReader, right?
|
Well that's if you are using .Net. If you are using Msxml parser no, you just include a reference to the schema or add schemas using the schemaCollection class. What maybe confusing is that although IE uses the msxml parser it only uses it in a non-validating mode. To use it in a validating mode you have to manipulate the class yourself. See the link I posted previously.
Quote:
quote:
Thanks for your help!
Jacob.
|
My pleasure
Joe (Microsoft MVP - xml)