Page 1 of 1

DtdProcessing does not exists in the current context

Posted: Wed Feb 20, 2013 4:56 pm
by ReutersDev
Hi, i'm trying to write a method that will upload step results to my QC test runs as well as uploading the report.

I keep getting the error 'Does not exists in the current context' when i am trying to assign DTdprocessing to parse DTDs. I have no idea why this is, but any advice would be extremely appreciated!!

the code that fails:

Code: Select all

XmlReaderSettings settings = new XmlReaderSettings();
settings.DtdProcessing = DtdProcessing.Parse;

Re: DtdProcessing does not exists in the current context

Posted: Thu Feb 21, 2013 11:57 am
by Support Team
That C# compiler error means that you are either missing a "using" statement for the namespace in which that type is in or you are missing a assembly reference to the assembly containing the type.

See the documentation of the type in order to know what to add:
http://msdn.microsoft.com/en-us/library ... 00%29.aspx

Regards,
Alex
Ranorex Team