Commit 3b5c2221 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Implemented the IXMLDOMElement interface.

parent 2be395db
...@@ -10,6 +10,7 @@ EXTRAINCL = @XML2INCL@ ...@@ -10,6 +10,7 @@ EXTRAINCL = @XML2INCL@
C_SRCS = \ C_SRCS = \
domdoc.c \ domdoc.c \
element.c \
factory.c \ factory.c \
main.c main.c
......
...@@ -39,8 +39,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(msxml); ...@@ -39,8 +39,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(msxml);
#ifdef HAVE_LIBXML2 #ifdef HAVE_LIBXML2
#include <libxml/parser.h>
typedef struct _domdoc typedef struct _domdoc
{ {
const struct IXMLDOMDocumentVtbl *lpVtbl; const struct IXMLDOMDocumentVtbl *lpVtbl;
...@@ -501,8 +499,11 @@ static HRESULT WINAPI domdoc_get_documentElement( ...@@ -501,8 +499,11 @@ static HRESULT WINAPI domdoc_get_documentElement(
IXMLDOMDocument *iface, IXMLDOMDocument *iface,
IXMLDOMElement** DOMElement ) IXMLDOMElement** DOMElement )
{ {
FIXME("\n"); domdoc *This = impl_from_IXMLDOMDocument( iface );
return E_NOTIMPL;
FIXME("%p\n", This);
return DOMElement_create(DOMElement, This->xmldoc);
} }
......
...@@ -21,6 +21,14 @@ ...@@ -21,6 +21,14 @@
#ifndef __MSXML_PRIVATE__ #ifndef __MSXML_PRIVATE__
#define __MSXML_PRIVATE__ #define __MSXML_PRIVATE__
#ifdef HAVE_LIBXML_PARSER_H
#include <libxml/parser.h>
extern HRESULT DOMElement_create( IXMLDOMElement** DOMElement, xmlDocPtr xmldoc );
#endif
extern HRESULT DOMDocument_create( IUnknown *pUnkOuter, LPVOID *ppObj ); extern HRESULT DOMDocument_create( IUnknown *pUnkOuter, LPVOID *ppObj );
#endif /* __MSXML_PRIVATE__ */ #endif /* __MSXML_PRIVATE__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment