Sets the specified property.
Remarks
For information about the properties this method can set, see IXmlReader Properties.
A program should only set properties before parsing starts—that is, before the first call to Read.
The following code sets the XmlReaderProperty_DtdProcessing property to prohibit DTDs.
if (FAILED(hr = pReader->SetProperty(XmlReaderProperty_DtdProcessing, DtdProcessing_Prohibit)))
{
wprintf(L"Error setting XmlReaderProperty_DtdProcessing, error is %08.8lx", hr);
return -1;
}