Hello Support Team,
where can I find the XmlSemanticParser class? Or do I have to write my own semantic parser (with its own grammar)?
All I want to do is ignore the DOCTYPE line, like:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
If I doesn't enable the DTDSupport, then I only receive an error message by the semantic parser, and none of the other errors in the file.
I know that i can enable the DTDSupport by:
xmlSchemaResolver.DtdSupportEnabled = true;
xmlSchemaResolver.DtdPath = @"D:\";
and specify the path, because I don't want to download all DTDs from the web.
BUT: If I do that, I have to change the DOCTYPE expression to:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "xhtml1-strict.dtd">
But then my XHTML-Templates won't work. So I thought I could implement, that the semantic parser ignores this line.
To cut a long story short: I want to validate my XHTML-Files against the XHTML-Schema, although there is a DOCTYPE expression with a link to a DTD.
Do you have any idea?
[Modified at 02/19/2010 04:45 AM]