CAR-100: Upgrade to .NET 4.0 instead of 3.5 -- Upgrading to .Net 4.0: ProhibitDtd=false is obsolete in .Net 4.0, replaced

Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
This commit is contained in:
Gabor Apati-Nagy 2013-12-06 17:33:44 +00:00
parent a22c00ff31
commit 23e474dbe2

View File

@ -397,7 +397,7 @@ namespace XenOvf.Utilities
xmlStream = new FileStream(ovfname, FileMode.Open, FileAccess.Read, FileShare.Read);
XmlReaderSettings settings = new XmlReaderSettings();
settings.ProhibitDtd = false;
settings.DtdProcessing = DtdProcessing.Parse; //Upgrading to .Net 4.0: ProhibitDtd=false is obsolete, this line is the replacement according to: http://msdn.microsoft.com/en-us/library/system.xml.xmlreadersettings.prohibitdtd%28v=vs.100%29.aspx
XmlSchema schema = new XmlSchema();
bool useOnlineSchema = Convert.ToBoolean(Properties.Settings.Default.useOnlineSchema);
if (useOnlineSchema)