msxml3: Implement get_namespaceURI.

This commit is contained in:
Alistair Leslie-Hughes 2008-04-18 21:29:59 +10:00 committed by Alexandre Julliard
parent fe4706940c
commit 8842ccb636
1 changed files with 20 additions and 2 deletions

View File

@ -1143,8 +1143,26 @@ static HRESULT WINAPI xmlnode_get_namespaceURI(
IXMLDOMNode *iface, IXMLDOMNode *iface,
BSTR* namespaceURI) BSTR* namespaceURI)
{ {
FIXME("\n"); xmlnode *This = impl_from_IXMLDOMNode( iface );
return E_NOTIMPL; HRESULT hr = S_FALSE;
xmlNsPtr *pNSList;
TRACE("%p %p\n", This, namespaceURI );
if(!namespaceURI)
return E_INVALIDARG;
*namespaceURI = NULL;
pNSList = xmlGetNsList(This->node->doc, This->node);
if(pNSList)
{
*namespaceURI = bstr_from_xmlChar( pNSList[0]->href );
hr = S_OK;
}
return hr;
} }
static HRESULT WINAPI xmlnode_get_prefix( static HRESULT WINAPI xmlnode_get_prefix(