From 88e3669b91d37b29077ff7a0b0b65f733dce53a2 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Thu, 28 Jul 2005 10:48:03 +0000 Subject: [PATCH] Add a definition for the IXMLDOMElement interface. --- include/xmldom.idl | 48 ++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/include/xmldom.idl b/include/xmldom.idl index 4bbd38afa76..0dfc465bccf 100644 --- a/include/xmldom.idl +++ b/include/xmldom.idl @@ -76,7 +76,7 @@ interface IXMLDOMNode : IDispatch HRESULT nodeValue( [out,retval] VARIANT *value ); [propput, id(DISPID_DOM_NODE_NODEVALUE)] - HRESULT noveValue( [in] VARIANT value ); + HRESULT nodeValue( [in] VARIANT value ); [propget, id(DISPID_DOM_NODE_NODETYPE)] HRESULT nodeType( [out,retval] DOMNodeType *type ); @@ -477,7 +477,51 @@ interface IXMLDOMAttribute : IXMLDOMNode HRESULT value( [in] VARIANT attributeValue ); }; -/* FIXME: interface IXMLDOMElement */ +[ +local, +object, +odl, +dual, +/*nonextensible,*/ +oleautomation, +uuid(2933bf86-7b36-11d2-b20e-00c04f983e60), +pointer_default(unique) +] +interface IXMLDOMElement : IXMLDOMNode +{ + [propget, id(DISPID_DOM_ELEMENT_GETTAGNAME)] + HRESULT tagName( [out,retval] BSTR *tagName ); + + [id(DISPID_DOM_ELEMENT_GETATTRIBUTE)] + HRESULT getAttribute( [in] BSTR name, + [out,retval] VARIANT * value ); + + [id(DISPID_DOM_ELEMENT_SETATTRIBUTE)] + HRESULT setAttribute( [in] BSTR name, + [in] VARIANT value ); + + [id(DISPID_DOM_ELEMENT_REMOVEATTRIBUTE)] + HRESULT removeAttribute( [in] BSTR name ); + + [id(DISPID_DOM_ELEMENT_GETATTRIBUTENODE)] + HRESULT getAttributeNode( [in] BSTR name, + [out, retval] IXMLDOMAttribute ** attributeNode ); + + [id(DISPID_DOM_ELEMENT_SETATTRIBUTENODE)] + HRESULT setAttributeNode( [in] IXMLDOMAttribute *DOMAttribute, + [out, retval] IXMLDOMAttribute ** attributeNode ); + + [id(DISPID_DOM_ELEMENT_REMOVEATTRIBUTENODE)] + HRESULT removeAttributeNode( [in] IXMLDOMAttribute *DOMAttribute, + [out, retval] IXMLDOMAttribute ** attributeNode ); + + [id(DISPID_DOM_ELEMENT_GETELEMENTSBYTAGNAME)] + HRESULT getElementsByTagName( [in] BSTR tagName, + [out, retval] IXMLDOMNodeList ** resultList ); + + [id(DISPID_DOM_ELEMENT_NORMALIZE)] + HRESULT normalize(); +}; [ local,