Groups | Blog | Home
all groups > dotnet xml > september 2003 >

dotnet xml : Create XML doctype problem.



Markov Alex
9/6/2003 12:43:04 AM
I'am trying to create doctype definition for XML file that
I build, named "PMMLdoc" with following order:

XmlDocumentType doctype = PMMLdoc.CreateDocumentType
("PMML", null, null, ".\\pmml_v2_0.dtd");
PMMLdoc.AppendChild(doctype);

And this is error:

"
....
An unhandled exception of type 'System.Xml.XmlException'
occurred in system.xml.dll

Additional information: System error.
....
"

Please help me. How can I define this doctype.
File "pmml_v2_0.dtd" is exist in local folder.
Oleg Tkachenko
9/8/2003 2:36:11 PM
[quoted text, click to view]

Try instead
PMMLdoc.CreateDocumentType("PMML", null, ".\\pmml_v2_0.dtd", null);
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel
AddThis Social Bookmark Button