Implement IXMLDOMNode::get_nodeName.
This commit is contained in:
parent
ebb839733a
commit
a182e093b0
|
@ -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 )
|
||||||
|
|
Loading…
Reference in New Issue