static HRESULT WINAPI dom_pi_get_attributes( IXMLDOMProcessingInstruction *iface, IXMLDOMNamedNodeMap** map) { dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface ); static const WCHAR xmlW[] = {'x','m','l',0}; HRESULT hr; BSTR name; TRACE("(%p)->(%p)\n", This, map); if (!map) return E_INVALIDARG; *map = NULL; hr = node_get_nodeName(&This->node, &name); if (hr != S_OK) return hr; if (!strcmpW(name, xmlW)) { FIXME("created dummy map for <?xml ?>\n"); *map = create_nodemap(This->node.node, &dom_pi_attr_map); SysFreeString(name); return S_OK; } SysFreeString(name); return S_FALSE; }
static HRESULT WINAPI dom_pi_get_attributes( IXMLDOMProcessingInstruction *iface, IXMLDOMNamedNodeMap** attributeMap) { dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface ); TRACE("(%p)->(%p)\n", This, attributeMap); *attributeMap = create_nodemap((IXMLDOMNode*)&This->IXMLDOMProcessingInstruction_iface); return S_OK; }