static HRESULT WINAPI dom_pi_put_nodeValue( IXMLDOMProcessingInstruction *iface, VARIANT value) { dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface ); BSTR sTarget; HRESULT hr; TRACE("(%p)->(v%d)\n", This, V_VT(&value)); /* Cannot set data to a PI node whose target is 'xml' */ hr = dom_pi_get_nodeName(iface, &sTarget); if(hr == S_OK) { static const WCHAR xmlW[] = {'x','m','l',0}; if(lstrcmpW( sTarget, xmlW) == 0) { SysFreeString(sTarget); return E_FAIL; } SysFreeString(sTarget); } return node_put_value(&This->node, &value); }
static HRESULT WINAPI domtext_put_nodeValue( IXMLDOMText *iface, VARIANT value) { domtext *This = impl_from_IXMLDOMText( iface ); TRACE("(%p)->(%s)\n", This, debugstr_variant(&value)); return node_put_value(&This->node, &value); }
static HRESULT WINAPI domcdata_put_nodeValue( IXMLDOMCDATASection *iface, VARIANT value) { domcdata *This = impl_from_IXMLDOMCDATASection( iface ); TRACE("(%p)->(%s)\n", This, debugstr_variant(&value)); return node_put_value(&This->node, &value); }
static HRESULT WINAPI domcomment_put_nodeValue( IXMLDOMComment *iface, VARIANT value) { domcomment *This = impl_from_IXMLDOMComment( iface ); TRACE("(%p)->(v%d)\n", This, V_VT(&value)); return node_put_value(&This->node, &value); }
static HRESULT WINAPI domcomment_put_data( IXMLDOMComment *iface, BSTR data) { domcomment *This = impl_from_IXMLDOMComment( iface ); VARIANT val; TRACE("(%p)->(%s)\n", This, debugstr_w(data) ); V_VT(&val) = VT_BSTR; V_BSTR(&val) = data; return node_put_value(&This->node, &val); }