Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
XML
data.xmlanalysis
mappoint.webservice
msf
msxml-webrelease
netmyservices.sdk
passport.sdk
soap
soapsdk
uddi.general
uddi.programming
uddi.specification
xml
xmlsqlwebrelease
xsl
  
 
date: Tue, 15 Jul 2008 15:07:28 -0700 (PDT),    group: microsoft.public.xml        back       


XML ProhibitDTD using MFC   
In order to use MSXML 6.0 with DTDs, I need to set the ProhibitDTD
property to false.

I had been using the CXMLDOMDocument class generated from the typelib,
but it has no function for ProhibitDTD.  So I tried using
CXMLDOMDocument2 instead since it has a setProperty function, like so:

doc.setProperty(_T("ProhibitDTD"),
COleVariant(static_cast<VARIANT_BOOL>(FALSE), VT_BOOL));

This compiles and runs without error, but the document still fails on
the load() command if there is a DTD.

How can ProhibitDTD be modified with the typelib-generated classes?
date: Tue, 15 Jul 2008 15:07:28 -0700 (PDT)   author:   unknown

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us