msxml3: Added ISAXContentHandler_endDocument event.

This commit is contained in:
Piotr Caban 2008-07-17 00:41:19 +02:00 committed by Alexandre Julliard
parent 4cdcc02562
commit c58b24b374
1 changed files with 20 additions and 0 deletions

View File

@ -101,6 +101,25 @@ static void libxmlStartDocument(void *ctx)
This->lastLine = xmlSAX2GetLineNumber(This->pParserCtxt);
}
static void libxmlEndDocument(void *ctx)
{
saxlocator *This = ctx;
HRESULT hr;
This->lastColumn = 0;
This->lastLine = 0;
if(This->saxreader->contentHandler)
{
hr = ISAXContentHandler_endDocument(This->saxreader->contentHandler);
if(FAILED(hr))
{
xmlStopParser(This->pParserCtxt);
This->ret = hr;
}
}
}
/*** ISAXLocator interface ***/
/*** IUnknown methods ***/
static HRESULT WINAPI isaxlocator_QueryInterface(ISAXLocator* iface, REFIID riid, void **ppvObject)
@ -900,6 +919,7 @@ HRESULT SAXXMLReader_create(IUnknown *pUnkOuter, LPVOID *ppObj)
memset(&reader->sax, 0, sizeof(xmlSAXHandler));
reader->sax.initialized = XML_SAX2_MAGIC;
reader->sax.startDocument = libxmlStartDocument;
reader->sax.endDocument = libxmlEndDocument;
*ppObj = &reader->lpVtbl;