Commit a182e093 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Implement IXMLDOMNode::get_nodeName.

parent ebb83973
...@@ -173,8 +173,29 @@ static HRESULT WINAPI xmlnode_get_nodeName( ...@@ -173,8 +173,29 @@ static HRESULT WINAPI xmlnode_get_nodeName(
IXMLDOMNode *iface, IXMLDOMNode *iface,
BSTR* name) BSTR* name)
{ {
FIXME("\n"); xmlnode *This = impl_from_IXMLDOMNode( iface );
return E_NOTIMPL; const xmlChar *str;
TRACE("%p\n", This );
if ( !This->node )
return E_FAIL;
switch( This->node->type )
{
case XML_TEXT_NODE:
str = (const xmlChar*) "#text";
break;
default:
str = This->node->name;
break;
}
*name = bstr_from_xmlChar( str );
if (!*name)
return S_FALSE;
return S_OK;
} }
BSTR bstr_from_xmlChar( const xmlChar *buf ) BSTR bstr_from_xmlChar( const xmlChar *buf )
......
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