Commit 75a8444a authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

msxml3: Implement IXMLDOMNode put_nodeValue.

parent 30f068a0
......@@ -284,8 +284,34 @@ static HRESULT WINAPI xmlnode_put_nodeValue(
IXMLDOMNode *iface,
VARIANT value)
{
FIXME("\n");
return E_NOTIMPL;
xmlnode *This = impl_from_IXMLDOMNode( iface );
HRESULT hr = S_FALSE;
xmlChar *str = NULL;
TRACE("%p type(%d)", This, This->node->type);
/* Document, Document Fragment, Document Type, Element,
Entity, Entity Reference, Notation arent supported. */
switch ( This->node->type )
{
case XML_ATTRIBUTE_NODE:
case XML_CDATA_SECTION_NODE:
case XML_COMMENT_NODE:
case XML_PI_NODE:
case XML_TEXT_NODE:
{
str = xmlChar_from_wchar((WCHAR*)V_BSTR(&value));
xmlNodeSetContent(This->node, str);
hr = S_OK;
break;
}
default:
/* Do nothing for unsupported types. */
break;
}
return hr;
}
static HRESULT WINAPI xmlnode_get_nodeType(
......
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