Alistair Leslie-Hughes : msxml3: Implement get_namespaceURI.

Alexandre Julliard julliard at winehq.org
Mon Apr 21 07:45:56 CDT 2008


Module: wine
Branch: master
Commit: 8842ccb63632ac856e34b210a470ead4137c1d19
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8842ccb63632ac856e34b210a470ead4137c1d19

Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date:   Fri Apr 18 21:29:59 2008 +1000

msxml3: Implement get_namespaceURI.

---

 dlls/msxml3/node.c |   22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c
index 7506460..092c360 100644
--- a/dlls/msxml3/node.c
+++ b/dlls/msxml3/node.c
@@ -1143,8 +1143,26 @@ static HRESULT WINAPI xmlnode_get_namespaceURI(
     IXMLDOMNode *iface,
     BSTR* namespaceURI)
 {
-    FIXME("\n");
-    return E_NOTIMPL;
+    xmlnode *This = impl_from_IXMLDOMNode( iface );
+    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(




More information about the wine-cvs mailing list