if ( SUCCEEDED(m_pParser.CreateInstance(__uuidof(SAXXMLReader40))) )
{
m_pSAXLexicalHandler = new SAXLexicalHandlerMSXML();
HRESULT hr = m_pParser->putProperty(L"http://xml.org/sax/properties/lexical-handler", (_variant_t)m_pSAXLexicalHandler);
}
The call to CreateInstance works however the call to putProperty returns E_FAIL which from what I can tell in MSDN means that the parser is in the process of parsing. But I just created it and I haven't told it to process anything yet. Things just aren't making any sense? Anyone have any thoughts.
Setting the lexical handler for an MSXML parser
So I've got a block of code like so
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement