Hajo,
I want to validate xml against DTD but I am not able to load DTD
schema.
My code looks like that:
XmlReaderSettings settings = new XmlReaderSettings();
settings.ProhibitDtd = false;
settings.ValidationType = ValidationType.DTD;
settings.ValidationEventHandler += new
ValidationEventHandler(ValidationCallBack);
settings.Schemas.Add(null,@"C:\application.dtd");
and I at last line I always get this error:
'ELEMENT' is an unexpected token. The expected token is 'DOCTYPE'. Line
38, position 3.
Below I enclose 38th line of DTD.
<!ELEMENT eu-application:applicationform (
declaration
, application
, maa-particulars
, scientific-advice
, paediatric-program
, other-maa
, annexed-documents
)>
But DTD should be ok because XMLSpy says that is well-formed. Any idea
what it is wrong?
thanks in advance
Pawel Pabich