From 77392f2d77091aceb6dfba53eb6e18d87a6ec5ea Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Thu, 11 Aug 2005 10:57:58 +0000 Subject: [PATCH] Implement IXMLDOMElement::get_tagName. --- dlls/msxml3/element.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/dlls/msxml3/element.c b/dlls/msxml3/element.c index 8ade1ea97ee..9415ff63693 100644 --- a/dlls/msxml3/element.c +++ b/dlls/msxml3/element.c @@ -428,8 +428,21 @@ static HRESULT WINAPI domelem_get_tagName( IXMLDOMElement *iface, BSTR* p) { - FIXME("\n"); - return E_NOTIMPL; + domelem *This = impl_from_IXMLDOMElement( iface ); + xmlNodePtr element; + + TRACE("%p\n", This ); + + if ( !This->node ) + return E_FAIL; + + element = xmlelement_from_xmlnode( This->node ); + if ( !element ) + return E_FAIL; + + *p = bstr_from_xmlChar( element->name ); + + return S_OK; } static HRESULT WINAPI domelem_getAttribute(