msxml.tli
上传用户:hawkcdm
上传日期:2013-02-10
资源大小:411k
文件大小:53k
源码类别:

xml/soap/webservice

开发平台:

Visual C++

  1. // Created by Microsoft (R) C/C++ Compiler Version 12.00.8447.0 (a759062c).
  2. //
  3. // msxml.tli
  4. //
  5. // Wrapper implementations for Win32 type library msxml.dll
  6. // compiler-generated file created 04/14/01 at 14:17:52 - DO NOT EDIT!
  7. #pragma once
  8. //
  9. // interface IXMLDOMImplementation wrapper method implementations
  10. //
  11. inline VARIANT_BOOL IXMLDOMImplementation::hasFeature ( _bstr_t feature, _bstr_t version ) {
  12.     VARIANT_BOOL _result;
  13.     HRESULT _hr = raw_hasFeature(feature, version, &_result);
  14.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  15.     return _result;
  16. }
  17. //
  18. // interface IXMLDOMNode wrapper method implementations
  19. //
  20. inline _bstr_t IXMLDOMNode::GetnodeName ( ) {
  21.     BSTR _result;
  22.     HRESULT _hr = get_nodeName(&_result);
  23.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  24.     return _bstr_t(_result, false);
  25. }
  26. inline _variant_t IXMLDOMNode::GetnodeValue ( ) {
  27.     VARIANT _result;
  28.     VariantInit(&_result);
  29.     HRESULT _hr = get_nodeValue(&_result);
  30.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  31.     return _variant_t(_result, false);
  32. }
  33. inline void IXMLDOMNode::PutnodeValue ( const _variant_t & value ) {
  34.     HRESULT _hr = put_nodeValue(value);
  35.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  36. }
  37. inline DOMNodeType IXMLDOMNode::GetnodeType ( ) {
  38.     DOMNodeType _result;
  39.     HRESULT _hr = get_nodeType(&_result);
  40.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  41.     return _result;
  42. }
  43. inline IXMLDOMNodePtr IXMLDOMNode::GetparentNode ( ) {
  44.     struct IXMLDOMNode * _result;
  45.     HRESULT _hr = get_parentNode(&_result);
  46.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  47.     return IXMLDOMNodePtr(_result, false);
  48. }
  49. inline IXMLDOMNodeListPtr IXMLDOMNode::GetchildNodes ( ) {
  50.     struct IXMLDOMNodeList * _result;
  51.     HRESULT _hr = get_childNodes(&_result);
  52.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  53.     return IXMLDOMNodeListPtr(_result, false);
  54. }
  55. inline IXMLDOMNodePtr IXMLDOMNode::GetfirstChild ( ) {
  56.     struct IXMLDOMNode * _result;
  57.     HRESULT _hr = get_firstChild(&_result);
  58.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  59.     return IXMLDOMNodePtr(_result, false);
  60. }
  61. inline IXMLDOMNodePtr IXMLDOMNode::GetlastChild ( ) {
  62.     struct IXMLDOMNode * _result;
  63.     HRESULT _hr = get_lastChild(&_result);
  64.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  65.     return IXMLDOMNodePtr(_result, false);
  66. }
  67. inline IXMLDOMNodePtr IXMLDOMNode::GetpreviousSibling ( ) {
  68.     struct IXMLDOMNode * _result;
  69.     HRESULT _hr = get_previousSibling(&_result);
  70.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  71.     return IXMLDOMNodePtr(_result, false);
  72. }
  73. inline IXMLDOMNodePtr IXMLDOMNode::GetnextSibling ( ) {
  74.     struct IXMLDOMNode * _result;
  75.     HRESULT _hr = get_nextSibling(&_result);
  76.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  77.     return IXMLDOMNodePtr(_result, false);
  78. }
  79. inline IXMLDOMNamedNodeMapPtr IXMLDOMNode::Getattributes ( ) {
  80.     struct IXMLDOMNamedNodeMap * _result;
  81.     HRESULT _hr = get_attributes(&_result);
  82.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  83.     return IXMLDOMNamedNodeMapPtr(_result, false);
  84. }
  85. inline IXMLDOMNodePtr IXMLDOMNode::insertBefore ( struct IXMLDOMNode * newChild, const _variant_t & refChild ) {
  86.     struct IXMLDOMNode * _result;
  87.     HRESULT _hr = raw_insertBefore(newChild, refChild, &_result);
  88.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  89.     return IXMLDOMNodePtr(_result, false);
  90. }
  91. inline IXMLDOMNodePtr IXMLDOMNode::replaceChild ( struct IXMLDOMNode * newChild, struct IXMLDOMNode * oldChild ) {
  92.     struct IXMLDOMNode * _result;
  93.     HRESULT _hr = raw_replaceChild(newChild, oldChild, &_result);
  94.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  95.     return IXMLDOMNodePtr(_result, false);
  96. }
  97. inline IXMLDOMNodePtr IXMLDOMNode::removeChild ( struct IXMLDOMNode * childNode ) {
  98.     struct IXMLDOMNode * _result;
  99.     HRESULT _hr = raw_removeChild(childNode, &_result);
  100.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  101.     return IXMLDOMNodePtr(_result, false);
  102. }
  103. inline IXMLDOMNodePtr IXMLDOMNode::appendChild ( struct IXMLDOMNode * newChild ) {
  104.     struct IXMLDOMNode * _result;
  105.     HRESULT _hr = raw_appendChild(newChild, &_result);
  106.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  107.     return IXMLDOMNodePtr(_result, false);
  108. }
  109. inline VARIANT_BOOL IXMLDOMNode::hasChildNodes ( ) {
  110.     VARIANT_BOOL _result;
  111.     HRESULT _hr = raw_hasChildNodes(&_result);
  112.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  113.     return _result;
  114. }
  115. inline IXMLDOMDocumentPtr IXMLDOMNode::GetownerDocument ( ) {
  116.     struct IXMLDOMDocument * _result;
  117.     HRESULT _hr = get_ownerDocument(&_result);
  118.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  119.     return IXMLDOMDocumentPtr(_result, false);
  120. }
  121. inline IXMLDOMNodePtr IXMLDOMNode::cloneNode ( VARIANT_BOOL deep ) {
  122.     struct IXMLDOMNode * _result;
  123.     HRESULT _hr = raw_cloneNode(deep, &_result);
  124.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  125.     return IXMLDOMNodePtr(_result, false);
  126. }
  127. inline _bstr_t IXMLDOMNode::GetnodeTypeString ( ) {
  128.     BSTR _result;
  129.     HRESULT _hr = get_nodeTypeString(&_result);
  130.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  131.     return _bstr_t(_result, false);
  132. }
  133. inline _bstr_t IXMLDOMNode::Gettext ( ) {
  134.     BSTR _result;
  135.     HRESULT _hr = get_text(&_result);
  136.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  137.     return _bstr_t(_result, false);
  138. }
  139. inline void IXMLDOMNode::Puttext ( _bstr_t text ) {
  140.     HRESULT _hr = put_text(text);
  141.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  142. }
  143. inline VARIANT_BOOL IXMLDOMNode::Getspecified ( ) {
  144.     VARIANT_BOOL _result;
  145.     HRESULT _hr = get_specified(&_result);
  146.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  147.     return _result;
  148. }
  149. inline IXMLDOMNodePtr IXMLDOMNode::Getdefinition ( ) {
  150.     struct IXMLDOMNode * _result;
  151.     HRESULT _hr = get_definition(&_result);
  152.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  153.     return IXMLDOMNodePtr(_result, false);
  154. }
  155. inline _variant_t IXMLDOMNode::GetnodeTypedValue ( ) {
  156.     VARIANT _result;
  157.     VariantInit(&_result);
  158.     HRESULT _hr = get_nodeTypedValue(&_result);
  159.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  160.     return _variant_t(_result, false);
  161. }
  162. inline void IXMLDOMNode::PutnodeTypedValue ( const _variant_t & typedValue ) {
  163.     HRESULT _hr = put_nodeTypedValue(typedValue);
  164.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  165. }
  166. inline _variant_t IXMLDOMNode::GetdataType ( ) {
  167.     VARIANT _result;
  168.     VariantInit(&_result);
  169.     HRESULT _hr = get_dataType(&_result);
  170.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  171.     return _variant_t(_result, false);
  172. }
  173. inline void IXMLDOMNode::PutdataType ( _bstr_t dataTypeName ) {
  174.     HRESULT _hr = put_dataType(dataTypeName);
  175.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  176. }
  177. inline _bstr_t IXMLDOMNode::Getxml ( ) {
  178.     BSTR _result;
  179.     HRESULT _hr = get_xml(&_result);
  180.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  181.     return _bstr_t(_result, false);
  182. }
  183. inline _bstr_t IXMLDOMNode::transformNode ( struct IXMLDOMNode * stylesheet ) {
  184.     BSTR _result;
  185.     HRESULT _hr = raw_transformNode(stylesheet, &_result);
  186.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  187.     return _bstr_t(_result, false);
  188. }
  189. inline IXMLDOMNodeListPtr IXMLDOMNode::selectNodes ( _bstr_t queryString ) {
  190.     struct IXMLDOMNodeList * _result;
  191.     HRESULT _hr = raw_selectNodes(queryString, &_result);
  192.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  193.     return IXMLDOMNodeListPtr(_result, false);
  194. }
  195. inline IXMLDOMNodePtr IXMLDOMNode::selectSingleNode ( _bstr_t queryString ) {
  196.     struct IXMLDOMNode * _result;
  197.     HRESULT _hr = raw_selectSingleNode(queryString, &_result);
  198.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  199.     return IXMLDOMNodePtr(_result, false);
  200. }
  201. inline VARIANT_BOOL IXMLDOMNode::Getparsed ( ) {
  202.     VARIANT_BOOL _result;
  203.     HRESULT _hr = get_parsed(&_result);
  204.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  205.     return _result;
  206. }
  207. inline _bstr_t IXMLDOMNode::GetnamespaceURI ( ) {
  208.     BSTR _result;
  209.     HRESULT _hr = get_namespaceURI(&_result);
  210.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  211.     return _bstr_t(_result, false);
  212. }
  213. inline _bstr_t IXMLDOMNode::Getprefix ( ) {
  214.     BSTR _result;
  215.     HRESULT _hr = get_prefix(&_result);
  216.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  217.     return _bstr_t(_result, false);
  218. }
  219. inline _bstr_t IXMLDOMNode::GetbaseName ( ) {
  220.     BSTR _result;
  221.     HRESULT _hr = get_baseName(&_result);
  222.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  223.     return _bstr_t(_result, false);
  224. }
  225. inline HRESULT IXMLDOMNode::transformNodeToObject ( struct IXMLDOMNode * stylesheet, const _variant_t & outputObject ) {
  226.     HRESULT _hr = raw_transformNodeToObject(stylesheet, outputObject);
  227.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  228.     return _hr;
  229. }
  230. //
  231. // interface IXMLDOMNodeList wrapper method implementations
  232. //
  233. inline IXMLDOMNodePtr IXMLDOMNodeList::Getitem ( long index ) {
  234.     struct IXMLDOMNode * _result;
  235.     HRESULT _hr = get_item(index, &_result);
  236.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  237.     return IXMLDOMNodePtr(_result, false);
  238. }
  239. inline long IXMLDOMNodeList::Getlength ( ) {
  240.     long _result;
  241.     HRESULT _hr = get_length(&_result);
  242.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  243.     return _result;
  244. }
  245. inline IXMLDOMNodePtr IXMLDOMNodeList::nextNode ( ) {
  246.     struct IXMLDOMNode * _result;
  247.     HRESULT _hr = raw_nextNode(&_result);
  248.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  249.     return IXMLDOMNodePtr(_result, false);
  250. }
  251. inline HRESULT IXMLDOMNodeList::reset ( ) {
  252.     HRESULT _hr = raw_reset();
  253.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  254.     return _hr;
  255. }
  256. inline IUnknownPtr IXMLDOMNodeList::Get_newEnum ( ) {
  257.     IUnknown * _result;
  258.     HRESULT _hr = get__newEnum(&_result);
  259.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  260.     return IUnknownPtr(_result, false);
  261. }
  262. //
  263. // interface IXMLDOMNamedNodeMap wrapper method implementations
  264. //
  265. inline IXMLDOMNodePtr IXMLDOMNamedNodeMap::getNamedItem ( _bstr_t name ) {
  266.     struct IXMLDOMNode * _result;
  267.     HRESULT _hr = raw_getNamedItem(name, &_result);
  268.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  269.     return IXMLDOMNodePtr(_result, false);
  270. }
  271. inline IXMLDOMNodePtr IXMLDOMNamedNodeMap::setNamedItem ( struct IXMLDOMNode * newItem ) {
  272.     struct IXMLDOMNode * _result;
  273.     HRESULT _hr = raw_setNamedItem(newItem, &_result);
  274.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  275.     return IXMLDOMNodePtr(_result, false);
  276. }
  277. inline IXMLDOMNodePtr IXMLDOMNamedNodeMap::removeNamedItem ( _bstr_t name ) {
  278.     struct IXMLDOMNode * _result;
  279.     HRESULT _hr = raw_removeNamedItem(name, &_result);
  280.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  281.     return IXMLDOMNodePtr(_result, false);
  282. }
  283. inline IXMLDOMNodePtr IXMLDOMNamedNodeMap::Getitem ( long index ) {
  284.     struct IXMLDOMNode * _result;
  285.     HRESULT _hr = get_item(index, &_result);
  286.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  287.     return IXMLDOMNodePtr(_result, false);
  288. }
  289. inline long IXMLDOMNamedNodeMap::Getlength ( ) {
  290.     long _result;
  291.     HRESULT _hr = get_length(&_result);
  292.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  293.     return _result;
  294. }
  295. inline IXMLDOMNodePtr IXMLDOMNamedNodeMap::getQualifiedItem ( _bstr_t baseName, _bstr_t namespaceURI ) {
  296.     struct IXMLDOMNode * _result;
  297.     HRESULT _hr = raw_getQualifiedItem(baseName, namespaceURI, &_result);
  298.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  299.     return IXMLDOMNodePtr(_result, false);
  300. }
  301. inline IXMLDOMNodePtr IXMLDOMNamedNodeMap::removeQualifiedItem ( _bstr_t baseName, _bstr_t namespaceURI ) {
  302.     struct IXMLDOMNode * _result;
  303.     HRESULT _hr = raw_removeQualifiedItem(baseName, namespaceURI, &_result);
  304.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  305.     return IXMLDOMNodePtr(_result, false);
  306. }
  307. inline IXMLDOMNodePtr IXMLDOMNamedNodeMap::nextNode ( ) {
  308.     struct IXMLDOMNode * _result;
  309.     HRESULT _hr = raw_nextNode(&_result);
  310.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  311.     return IXMLDOMNodePtr(_result, false);
  312. }
  313. inline HRESULT IXMLDOMNamedNodeMap::reset ( ) {
  314.     HRESULT _hr = raw_reset();
  315.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  316.     return _hr;
  317. }
  318. inline IUnknownPtr IXMLDOMNamedNodeMap::Get_newEnum ( ) {
  319.     IUnknown * _result;
  320.     HRESULT _hr = get__newEnum(&_result);
  321.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  322.     return IUnknownPtr(_result, false);
  323. }
  324. //
  325. // interface IXMLDOMDocument wrapper method implementations
  326. //
  327. inline IXMLDOMDocumentTypePtr IXMLDOMDocument::Getdoctype ( ) {
  328.     struct IXMLDOMDocumentType * _result;
  329.     HRESULT _hr = get_doctype(&_result);
  330.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  331.     return IXMLDOMDocumentTypePtr(_result, false);
  332. }
  333. inline IXMLDOMImplementationPtr IXMLDOMDocument::Getimplementation ( ) {
  334.     struct IXMLDOMImplementation * _result;
  335.     HRESULT _hr = get_implementation(&_result);
  336.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  337.     return IXMLDOMImplementationPtr(_result, false);
  338. }
  339. inline IXMLDOMElementPtr IXMLDOMDocument::GetdocumentElement ( ) {
  340.     struct IXMLDOMElement * _result;
  341.     HRESULT _hr = get_documentElement(&_result);
  342.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  343.     return IXMLDOMElementPtr(_result, false);
  344. }
  345. inline void IXMLDOMDocument::PutRefdocumentElement ( struct IXMLDOMElement * DOMElement ) {
  346.     HRESULT _hr = putref_documentElement(DOMElement);
  347.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  348. }
  349. inline IXMLDOMElementPtr IXMLDOMDocument::createElement ( _bstr_t tagName ) {
  350.     struct IXMLDOMElement * _result;
  351.     HRESULT _hr = raw_createElement(tagName, &_result);
  352.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  353.     return IXMLDOMElementPtr(_result, false);
  354. }
  355. inline IXMLDOMDocumentFragmentPtr IXMLDOMDocument::createDocumentFragment ( ) {
  356.     struct IXMLDOMDocumentFragment * _result;
  357.     HRESULT _hr = raw_createDocumentFragment(&_result);
  358.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  359.     return IXMLDOMDocumentFragmentPtr(_result, false);
  360. }
  361. inline IXMLDOMTextPtr IXMLDOMDocument::createTextNode ( _bstr_t data ) {
  362.     struct IXMLDOMText * _result;
  363.     HRESULT _hr = raw_createTextNode(data, &_result);
  364.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  365.     return IXMLDOMTextPtr(_result, false);
  366. }
  367. inline IXMLDOMCommentPtr IXMLDOMDocument::createComment ( _bstr_t data ) {
  368.     struct IXMLDOMComment * _result;
  369.     HRESULT _hr = raw_createComment(data, &_result);
  370.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  371.     return IXMLDOMCommentPtr(_result, false);
  372. }
  373. inline IXMLDOMCDATASectionPtr IXMLDOMDocument::createCDATASection ( _bstr_t data ) {
  374.     struct IXMLDOMCDATASection * _result;
  375.     HRESULT _hr = raw_createCDATASection(data, &_result);
  376.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  377.     return IXMLDOMCDATASectionPtr(_result, false);
  378. }
  379. inline IXMLDOMProcessingInstructionPtr IXMLDOMDocument::createProcessingInstruction ( _bstr_t target, _bstr_t data ) {
  380.     struct IXMLDOMProcessingInstruction * _result;
  381.     HRESULT _hr = raw_createProcessingInstruction(target, data, &_result);
  382.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  383.     return IXMLDOMProcessingInstructionPtr(_result, false);
  384. }
  385. inline IXMLDOMAttributePtr IXMLDOMDocument::createAttribute ( _bstr_t name ) {
  386.     struct IXMLDOMAttribute * _result;
  387.     HRESULT _hr = raw_createAttribute(name, &_result);
  388.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  389.     return IXMLDOMAttributePtr(_result, false);
  390. }
  391. inline IXMLDOMEntityReferencePtr IXMLDOMDocument::createEntityReference ( _bstr_t name ) {
  392.     struct IXMLDOMEntityReference * _result;
  393.     HRESULT _hr = raw_createEntityReference(name, &_result);
  394.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  395.     return IXMLDOMEntityReferencePtr(_result, false);
  396. }
  397. inline IXMLDOMNodeListPtr IXMLDOMDocument::getElementsByTagName ( _bstr_t tagName ) {
  398.     struct IXMLDOMNodeList * _result;
  399.     HRESULT _hr = raw_getElementsByTagName(tagName, &_result);
  400.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  401.     return IXMLDOMNodeListPtr(_result, false);
  402. }
  403. inline IXMLDOMNodePtr IXMLDOMDocument::createNode ( const _variant_t & type, _bstr_t name, _bstr_t namespaceURI ) {
  404.     struct IXMLDOMNode * _result;
  405.     HRESULT _hr = raw_createNode(type, name, namespaceURI, &_result);
  406.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  407.     return IXMLDOMNodePtr(_result, false);
  408. }
  409. inline IXMLDOMNodePtr IXMLDOMDocument::nodeFromID ( _bstr_t idString ) {
  410.     struct IXMLDOMNode * _result;
  411.     HRESULT _hr = raw_nodeFromID(idString, &_result);
  412.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  413.     return IXMLDOMNodePtr(_result, false);
  414. }
  415. inline VARIANT_BOOL IXMLDOMDocument::load ( const _variant_t & xmlSource ) {
  416.     VARIANT_BOOL _result;
  417.     HRESULT _hr = raw_load(xmlSource, &_result);
  418.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  419.     return _result;
  420. }
  421. inline long IXMLDOMDocument::GetreadyState ( ) {
  422.     long _result;
  423.     HRESULT _hr = get_readyState(&_result);
  424.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  425.     return _result;
  426. }
  427. inline IXMLDOMParseErrorPtr IXMLDOMDocument::GetparseError ( ) {
  428.     struct IXMLDOMParseError * _result;
  429.     HRESULT _hr = get_parseError(&_result);
  430.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  431.     return IXMLDOMParseErrorPtr(_result, false);
  432. }
  433. inline _bstr_t IXMLDOMDocument::Geturl ( ) {
  434.     BSTR _result;
  435.     HRESULT _hr = get_url(&_result);
  436.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  437.     return _bstr_t(_result, false);
  438. }
  439. inline VARIANT_BOOL IXMLDOMDocument::Getasync ( ) {
  440.     VARIANT_BOOL _result;
  441.     HRESULT _hr = get_async(&_result);
  442.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  443.     return _result;
  444. }
  445. inline void IXMLDOMDocument::Putasync ( VARIANT_BOOL isAsync ) {
  446.     HRESULT _hr = put_async(isAsync);
  447.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  448. }
  449. inline HRESULT IXMLDOMDocument::abort ( ) {
  450.     HRESULT _hr = raw_abort();
  451.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  452.     return _hr;
  453. }
  454. inline VARIANT_BOOL IXMLDOMDocument::loadXML ( _bstr_t bstrXML ) {
  455.     VARIANT_BOOL _result;
  456.     HRESULT _hr = raw_loadXML(bstrXML, &_result);
  457.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  458.     return _result;
  459. }
  460. inline HRESULT IXMLDOMDocument::save ( const _variant_t & desination ) {
  461.     HRESULT _hr = raw_save(desination);
  462.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  463.     return _hr;
  464. }
  465. inline VARIANT_BOOL IXMLDOMDocument::GetvalidateOnParse ( ) {
  466.     VARIANT_BOOL _result;
  467.     HRESULT _hr = get_validateOnParse(&_result);
  468.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  469.     return _result;
  470. }
  471. inline void IXMLDOMDocument::PutvalidateOnParse ( VARIANT_BOOL isValidating ) {
  472.     HRESULT _hr = put_validateOnParse(isValidating);
  473.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  474. }
  475. inline VARIANT_BOOL IXMLDOMDocument::GetresolveExternals ( ) {
  476.     VARIANT_BOOL _result;
  477.     HRESULT _hr = get_resolveExternals(&_result);
  478.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  479.     return _result;
  480. }
  481. inline void IXMLDOMDocument::PutresolveExternals ( VARIANT_BOOL isResolving ) {
  482.     HRESULT _hr = put_resolveExternals(isResolving);
  483.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  484. }
  485. inline VARIANT_BOOL IXMLDOMDocument::GetpreserveWhiteSpace ( ) {
  486.     VARIANT_BOOL _result;
  487.     HRESULT _hr = get_preserveWhiteSpace(&_result);
  488.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  489.     return _result;
  490. }
  491. inline void IXMLDOMDocument::PutpreserveWhiteSpace ( VARIANT_BOOL isPreserving ) {
  492.     HRESULT _hr = put_preserveWhiteSpace(isPreserving);
  493.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  494. }
  495. inline void IXMLDOMDocument::Putonreadystatechange ( const _variant_t & _arg1 ) {
  496.     HRESULT _hr = put_onreadystatechange(_arg1);
  497.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  498. }
  499. inline void IXMLDOMDocument::Putondataavailable ( const _variant_t & _arg1 ) {
  500.     HRESULT _hr = put_ondataavailable(_arg1);
  501.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  502. }
  503. inline void IXMLDOMDocument::Putontransformnode ( const _variant_t & _arg1 ) {
  504.     HRESULT _hr = put_ontransformnode(_arg1);
  505.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  506. }
  507. //
  508. // interface IXMLDOMDocumentType wrapper method implementations
  509. //
  510. inline _bstr_t IXMLDOMDocumentType::Getname ( ) {
  511.     BSTR _result;
  512.     HRESULT _hr = get_name(&_result);
  513.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  514.     return _bstr_t(_result, false);
  515. }
  516. inline IXMLDOMNamedNodeMapPtr IXMLDOMDocumentType::Getentities ( ) {
  517.     struct IXMLDOMNamedNodeMap * _result;
  518.     HRESULT _hr = get_entities(&_result);
  519.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  520.     return IXMLDOMNamedNodeMapPtr(_result, false);
  521. }
  522. inline IXMLDOMNamedNodeMapPtr IXMLDOMDocumentType::Getnotations ( ) {
  523.     struct IXMLDOMNamedNodeMap * _result;
  524.     HRESULT _hr = get_notations(&_result);
  525.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  526.     return IXMLDOMNamedNodeMapPtr(_result, false);
  527. }
  528. //
  529. // interface IXMLDOMElement wrapper method implementations
  530. //
  531. inline _bstr_t IXMLDOMElement::GettagName ( ) {
  532.     BSTR _result;
  533.     HRESULT _hr = get_tagName(&_result);
  534.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  535.     return _bstr_t(_result, false);
  536. }
  537. inline _variant_t IXMLDOMElement::getAttribute ( _bstr_t name ) {
  538.     VARIANT _result;
  539.     VariantInit(&_result);
  540.     HRESULT _hr = raw_getAttribute(name, &_result);
  541.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  542.     return _variant_t(_result, false);
  543. }
  544. inline HRESULT IXMLDOMElement::setAttribute ( _bstr_t name, const _variant_t & value ) {
  545.     HRESULT _hr = raw_setAttribute(name, value);
  546.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  547.     return _hr;
  548. }
  549. inline HRESULT IXMLDOMElement::removeAttribute ( _bstr_t name ) {
  550.     HRESULT _hr = raw_removeAttribute(name);
  551.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  552.     return _hr;
  553. }
  554. inline IXMLDOMAttributePtr IXMLDOMElement::getAttributeNode ( _bstr_t name ) {
  555.     struct IXMLDOMAttribute * _result;
  556.     HRESULT _hr = raw_getAttributeNode(name, &_result);
  557.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  558.     return IXMLDOMAttributePtr(_result, false);
  559. }
  560. inline IXMLDOMAttributePtr IXMLDOMElement::setAttributeNode ( struct IXMLDOMAttribute * DOMAttribute ) {
  561.     struct IXMLDOMAttribute * _result;
  562.     HRESULT _hr = raw_setAttributeNode(DOMAttribute, &_result);
  563.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  564.     return IXMLDOMAttributePtr(_result, false);
  565. }
  566. inline IXMLDOMAttributePtr IXMLDOMElement::removeAttributeNode ( struct IXMLDOMAttribute * DOMAttribute ) {
  567.     struct IXMLDOMAttribute * _result;
  568.     HRESULT _hr = raw_removeAttributeNode(DOMAttribute, &_result);
  569.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  570.     return IXMLDOMAttributePtr(_result, false);
  571. }
  572. inline IXMLDOMNodeListPtr IXMLDOMElement::getElementsByTagName ( _bstr_t tagName ) {
  573.     struct IXMLDOMNodeList * _result;
  574.     HRESULT _hr = raw_getElementsByTagName(tagName, &_result);
  575.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  576.     return IXMLDOMNodeListPtr(_result, false);
  577. }
  578. inline HRESULT IXMLDOMElement::normalize ( ) {
  579.     HRESULT _hr = raw_normalize();
  580.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  581.     return _hr;
  582. }
  583. //
  584. // interface IXMLDOMAttribute wrapper method implementations
  585. //
  586. inline _bstr_t IXMLDOMAttribute::Getname ( ) {
  587.     BSTR _result;
  588.     HRESULT _hr = get_name(&_result);
  589.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  590.     return _bstr_t(_result, false);
  591. }
  592. inline _variant_t IXMLDOMAttribute::Getvalue ( ) {
  593.     VARIANT _result;
  594.     VariantInit(&_result);
  595.     HRESULT _hr = get_value(&_result);
  596.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  597.     return _variant_t(_result, false);
  598. }
  599. inline void IXMLDOMAttribute::Putvalue ( const _variant_t & attributeValue ) {
  600.     HRESULT _hr = put_value(attributeValue);
  601.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  602. }
  603. //
  604. // interface IXMLDOMCharacterData wrapper method implementations
  605. //
  606. inline _bstr_t IXMLDOMCharacterData::Getdata ( ) {
  607.     BSTR _result;
  608.     HRESULT _hr = get_data(&_result);
  609.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  610.     return _bstr_t(_result, false);
  611. }
  612. inline void IXMLDOMCharacterData::Putdata ( _bstr_t data ) {
  613.     HRESULT _hr = put_data(data);
  614.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  615. }
  616. inline long IXMLDOMCharacterData::Getlength ( ) {
  617.     long _result;
  618.     HRESULT _hr = get_length(&_result);
  619.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  620.     return _result;
  621. }
  622. inline _bstr_t IXMLDOMCharacterData::substringData ( long offset, long count ) {
  623.     BSTR _result;
  624.     HRESULT _hr = raw_substringData(offset, count, &_result);
  625.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  626.     return _bstr_t(_result, false);
  627. }
  628. inline HRESULT IXMLDOMCharacterData::appendData ( _bstr_t data ) {
  629.     HRESULT _hr = raw_appendData(data);
  630.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  631.     return _hr;
  632. }
  633. inline HRESULT IXMLDOMCharacterData::insertData ( long offset, _bstr_t data ) {
  634.     HRESULT _hr = raw_insertData(offset, data);
  635.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  636.     return _hr;
  637. }
  638. inline HRESULT IXMLDOMCharacterData::deleteData ( long offset, long count ) {
  639.     HRESULT _hr = raw_deleteData(offset, count);
  640.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  641.     return _hr;
  642. }
  643. inline HRESULT IXMLDOMCharacterData::replaceData ( long offset, long count, _bstr_t data ) {
  644.     HRESULT _hr = raw_replaceData(offset, count, data);
  645.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  646.     return _hr;
  647. }
  648. //
  649. // interface IXMLDOMText wrapper method implementations
  650. //
  651. inline IXMLDOMTextPtr IXMLDOMText::splitText ( long offset ) {
  652.     struct IXMLDOMText * _result;
  653.     HRESULT _hr = raw_splitText(offset, &_result);
  654.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  655.     return IXMLDOMTextPtr(_result, false);
  656. }
  657. //
  658. // interface IXMLDOMProcessingInstruction wrapper method implementations
  659. //
  660. inline _bstr_t IXMLDOMProcessingInstruction::Gettarget ( ) {
  661.     BSTR _result;
  662.     HRESULT _hr = get_target(&_result);
  663.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  664.     return _bstr_t(_result, false);
  665. }
  666. inline _bstr_t IXMLDOMProcessingInstruction::Getdata ( ) {
  667.     BSTR _result;
  668.     HRESULT _hr = get_data(&_result);
  669.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  670.     return _bstr_t(_result, false);
  671. }
  672. inline void IXMLDOMProcessingInstruction::Putdata ( _bstr_t value ) {
  673.     HRESULT _hr = put_data(value);
  674.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  675. }
  676. //
  677. // interface IXMLDOMParseError wrapper method implementations
  678. //
  679. inline long IXMLDOMParseError::GeterrorCode ( ) {
  680.     long _result;
  681.     HRESULT _hr = get_errorCode(&_result);
  682.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  683.     return _result;
  684. }
  685. inline _bstr_t IXMLDOMParseError::Geturl ( ) {
  686.     BSTR _result;
  687.     HRESULT _hr = get_url(&_result);
  688.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  689.     return _bstr_t(_result, false);
  690. }
  691. inline _bstr_t IXMLDOMParseError::Getreason ( ) {
  692.     BSTR _result;
  693.     HRESULT _hr = get_reason(&_result);
  694.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  695.     return _bstr_t(_result, false);
  696. }
  697. inline _bstr_t IXMLDOMParseError::GetsrcText ( ) {
  698.     BSTR _result;
  699.     HRESULT _hr = get_srcText(&_result);
  700.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  701.     return _bstr_t(_result, false);
  702. }
  703. inline long IXMLDOMParseError::Getline ( ) {
  704.     long _result;
  705.     HRESULT _hr = get_line(&_result);
  706.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  707.     return _result;
  708. }
  709. inline long IXMLDOMParseError::Getlinepos ( ) {
  710.     long _result;
  711.     HRESULT _hr = get_linepos(&_result);
  712.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  713.     return _result;
  714. }
  715. inline long IXMLDOMParseError::Getfilepos ( ) {
  716.     long _result;
  717.     HRESULT _hr = get_filepos(&_result);
  718.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  719.     return _result;
  720. }
  721. //
  722. // interface IXMLDOMNotation wrapper method implementations
  723. //
  724. inline _variant_t IXMLDOMNotation::GetpublicId ( ) {
  725.     VARIANT _result;
  726.     VariantInit(&_result);
  727.     HRESULT _hr = get_publicId(&_result);
  728.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  729.     return _variant_t(_result, false);
  730. }
  731. inline _variant_t IXMLDOMNotation::GetsystemId ( ) {
  732.     VARIANT _result;
  733.     VariantInit(&_result);
  734.     HRESULT _hr = get_systemId(&_result);
  735.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  736.     return _variant_t(_result, false);
  737. }
  738. //
  739. // interface IXMLDOMEntity wrapper method implementations
  740. //
  741. inline _variant_t IXMLDOMEntity::GetpublicId ( ) {
  742.     VARIANT _result;
  743.     VariantInit(&_result);
  744.     HRESULT _hr = get_publicId(&_result);
  745.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  746.     return _variant_t(_result, false);
  747. }
  748. inline _variant_t IXMLDOMEntity::GetsystemId ( ) {
  749.     VARIANT _result;
  750.     VariantInit(&_result);
  751.     HRESULT _hr = get_systemId(&_result);
  752.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  753.     return _variant_t(_result, false);
  754. }
  755. inline _bstr_t IXMLDOMEntity::GetnotationName ( ) {
  756.     BSTR _result;
  757.     HRESULT _hr = get_notationName(&_result);
  758.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  759.     return _bstr_t(_result, false);
  760. }
  761. //
  762. // interface IXTLRuntime wrapper method implementations
  763. //
  764. inline long IXTLRuntime::uniqueID ( struct IXMLDOMNode * pNode ) {
  765.     long _result;
  766.     HRESULT _hr = raw_uniqueID(pNode, &_result);
  767.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  768.     return _result;
  769. }
  770. inline long IXTLRuntime::depth ( struct IXMLDOMNode * pNode ) {
  771.     long _result;
  772.     HRESULT _hr = raw_depth(pNode, &_result);
  773.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  774.     return _result;
  775. }
  776. inline long IXTLRuntime::childNumber ( struct IXMLDOMNode * pNode ) {
  777.     long _result;
  778.     HRESULT _hr = raw_childNumber(pNode, &_result);
  779.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  780.     return _result;
  781. }
  782. inline long IXTLRuntime::ancestorChildNumber ( _bstr_t bstrNodeName, struct IXMLDOMNode * pNode ) {
  783.     long _result;
  784.     HRESULT _hr = raw_ancestorChildNumber(bstrNodeName, pNode, &_result);
  785.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  786.     return _result;
  787. }
  788. inline long IXTLRuntime::absoluteChildNumber ( struct IXMLDOMNode * pNode ) {
  789.     long _result;
  790.     HRESULT _hr = raw_absoluteChildNumber(pNode, &_result);
  791.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  792.     return _result;
  793. }
  794. inline _bstr_t IXTLRuntime::formatIndex ( long lIndex, _bstr_t bstrFormat ) {
  795.     BSTR _result;
  796.     HRESULT _hr = raw_formatIndex(lIndex, bstrFormat, &_result);
  797.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  798.     return _bstr_t(_result, false);
  799. }
  800. inline _bstr_t IXTLRuntime::formatNumber ( double dblNumber, _bstr_t bstrFormat ) {
  801.     BSTR _result;
  802.     HRESULT _hr = raw_formatNumber(dblNumber, bstrFormat, &_result);
  803.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  804.     return _bstr_t(_result, false);
  805. }
  806. inline _bstr_t IXTLRuntime::formatDate ( const _variant_t & varDate, _bstr_t bstrFormat, const _variant_t & varDestLocale ) {
  807.     BSTR _result;
  808.     HRESULT _hr = raw_formatDate(varDate, bstrFormat, varDestLocale, &_result);
  809.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  810.     return _bstr_t(_result, false);
  811. }
  812. inline _bstr_t IXTLRuntime::formatTime ( const _variant_t & varTime, _bstr_t bstrFormat, const _variant_t & varDestLocale ) {
  813.     BSTR _result;
  814.     HRESULT _hr = raw_formatTime(varTime, bstrFormat, varDestLocale, &_result);
  815.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  816.     return _bstr_t(_result, false);
  817. }
  818. //
  819. // dispinterface XMLDOMDocumentEvents wrapper method implementations
  820. //
  821. inline HRESULT XMLDOMDocumentEvents::ondataavailable ( ) {
  822.     HRESULT _result;
  823.     _com_dispatch_method(this, 0xc6, DISPATCH_METHOD, VT_ERROR, (void*)&_result, NULL);
  824.     return _result;
  825. }
  826. inline HRESULT XMLDOMDocumentEvents::onreadystatechange ( ) {
  827.     HRESULT _result;
  828.     _com_dispatch_method(this, DISPID_READYSTATECHANGE, DISPATCH_METHOD, VT_ERROR, (void*)&_result, NULL);
  829.     return _result;
  830. }
  831. //
  832. // interface IXMLHttpRequest wrapper method implementations
  833. //
  834. inline HRESULT IXMLHttpRequest::open ( _bstr_t bstrMethod, _bstr_t bstrUrl, const _variant_t & varAsync, const _variant_t & bstrUser, const _variant_t & bstrPassword ) {
  835.     HRESULT _hr = raw_open(bstrMethod, bstrUrl, varAsync, bstrUser, bstrPassword);
  836.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  837.     return _hr;
  838. }
  839. inline HRESULT IXMLHttpRequest::setRequestHeader ( _bstr_t bstrHeader, _bstr_t bstrValue ) {
  840.     HRESULT _hr = raw_setRequestHeader(bstrHeader, bstrValue);
  841.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  842.     return _hr;
  843. }
  844. inline _bstr_t IXMLHttpRequest::getResponseHeader ( _bstr_t bstrHeader ) {
  845.     BSTR _result;
  846.     HRESULT _hr = raw_getResponseHeader(bstrHeader, &_result);
  847.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  848.     return _bstr_t(_result, false);
  849. }
  850. inline _bstr_t IXMLHttpRequest::getAllResponseHeaders ( ) {
  851.     BSTR _result;
  852.     HRESULT _hr = raw_getAllResponseHeaders(&_result);
  853.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  854.     return _bstr_t(_result, false);
  855. }
  856. inline HRESULT IXMLHttpRequest::send ( const _variant_t & varBody ) {
  857.     HRESULT _hr = raw_send(varBody);
  858.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  859.     return _hr;
  860. }
  861. inline HRESULT IXMLHttpRequest::abort ( ) {
  862.     HRESULT _hr = raw_abort();
  863.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  864.     return _hr;
  865. }
  866. inline long IXMLHttpRequest::Getstatus ( ) {
  867.     long _result;
  868.     HRESULT _hr = get_status(&_result);
  869.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  870.     return _result;
  871. }
  872. inline _bstr_t IXMLHttpRequest::GetstatusText ( ) {
  873.     BSTR _result;
  874.     HRESULT _hr = get_statusText(&_result);
  875.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  876.     return _bstr_t(_result, false);
  877. }
  878. inline IDispatchPtr IXMLHttpRequest::GetresponseXML ( ) {
  879.     IDispatch * _result;
  880.     HRESULT _hr = get_responseXML(&_result);
  881.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  882.     return IDispatchPtr(_result, false);
  883. }
  884. inline _bstr_t IXMLHttpRequest::GetresponseText ( ) {
  885.     BSTR _result;
  886.     HRESULT _hr = get_responseText(&_result);
  887.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  888.     return _bstr_t(_result, false);
  889. }
  890. inline _variant_t IXMLHttpRequest::GetresponseBody ( ) {
  891.     VARIANT _result;
  892.     VariantInit(&_result);
  893.     HRESULT _hr = get_responseBody(&_result);
  894.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  895.     return _variant_t(_result, false);
  896. }
  897. inline _variant_t IXMLHttpRequest::GetresponseStream ( ) {
  898.     VARIANT _result;
  899.     VariantInit(&_result);
  900.     HRESULT _hr = get_responseStream(&_result);
  901.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  902.     return _variant_t(_result, false);
  903. }
  904. inline long IXMLHttpRequest::GetreadyState ( ) {
  905.     long _result;
  906.     HRESULT _hr = get_readyState(&_result);
  907.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  908.     return _result;
  909. }
  910. inline void IXMLHttpRequest::Putonreadystatechange ( IDispatch * _arg1 ) {
  911.     HRESULT _hr = put_onreadystatechange(_arg1);
  912.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  913. }
  914. //
  915. // interface IXMLDSOControl wrapper method implementations
  916. //
  917. inline IXMLDOMDocumentPtr IXMLDSOControl::GetXMLDocument ( ) {
  918.     struct IXMLDOMDocument * _result;
  919.     HRESULT _hr = get_XMLDocument(&_result);
  920.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  921.     return IXMLDOMDocumentPtr(_result, false);
  922. }
  923. inline void IXMLDSOControl::PutXMLDocument ( struct IXMLDOMDocument * ppDoc ) {
  924.     HRESULT _hr = put_XMLDocument(ppDoc);
  925.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  926. }
  927. inline long IXMLDSOControl::GetJavaDSOCompatible ( ) {
  928.     long _result;
  929.     HRESULT _hr = get_JavaDSOCompatible(&_result);
  930.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  931.     return _result;
  932. }
  933. inline void IXMLDSOControl::PutJavaDSOCompatible ( long fJavaDSOCompatible ) {
  934.     HRESULT _hr = put_JavaDSOCompatible(fJavaDSOCompatible);
  935.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  936. }
  937. inline long IXMLDSOControl::GetreadyState ( ) {
  938.     long _result;
  939.     HRESULT _hr = get_readyState(&_result);
  940.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  941.     return _result;
  942. }
  943. //
  944. // interface IXMLElementCollection wrapper method implementations
  945. //
  946. inline void IXMLElementCollection::Putlength ( long p ) {
  947.     HRESULT _hr = put_length(p);
  948.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  949. }
  950. inline long IXMLElementCollection::Getlength ( ) {
  951.     long _result;
  952.     HRESULT _hr = get_length(&_result);
  953.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  954.     return _result;
  955. }
  956. inline IUnknownPtr IXMLElementCollection::Get_newEnum ( ) {
  957.     IUnknown * _result;
  958.     HRESULT _hr = get__newEnum(&_result);
  959.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  960.     return IUnknownPtr(_result, false);
  961. }
  962. inline IDispatchPtr IXMLElementCollection::item ( const _variant_t & var1, const _variant_t & var2 ) {
  963.     IDispatch * _result;
  964.     HRESULT _hr = raw_item(var1, var2, &_result);
  965.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  966.     return IDispatchPtr(_result, false);
  967. }
  968. //
  969. // interface IXMLDocument wrapper method implementations
  970. //
  971. inline IXMLElementPtr IXMLDocument::Getroot ( ) {
  972.     struct IXMLElement * _result;
  973.     HRESULT _hr = get_root(&_result);
  974.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  975.     return IXMLElementPtr(_result, false);
  976. }
  977. inline _bstr_t IXMLDocument::GetfileSize ( ) {
  978.     BSTR _result;
  979.     HRESULT _hr = get_fileSize(&_result);
  980.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  981.     return _bstr_t(_result, false);
  982. }
  983. inline _bstr_t IXMLDocument::GetfileModifiedDate ( ) {
  984.     BSTR _result;
  985.     HRESULT _hr = get_fileModifiedDate(&_result);
  986.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  987.     return _bstr_t(_result, false);
  988. }
  989. inline _bstr_t IXMLDocument::GetfileUpdatedDate ( ) {
  990.     BSTR _result;
  991.     HRESULT _hr = get_fileUpdatedDate(&_result);
  992.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  993.     return _bstr_t(_result, false);
  994. }
  995. inline _bstr_t IXMLDocument::Geturl ( ) {
  996.     BSTR _result;
  997.     HRESULT _hr = get_url(&_result);
  998.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  999.     return _bstr_t(_result, false);
  1000. }
  1001. inline void IXMLDocument::Puturl ( _bstr_t p ) {
  1002.     HRESULT _hr = put_url(p);
  1003.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1004. }
  1005. inline _bstr_t IXMLDocument::GetmimeType ( ) {
  1006.     BSTR _result;
  1007.     HRESULT _hr = get_mimeType(&_result);
  1008.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1009.     return _bstr_t(_result, false);
  1010. }
  1011. inline long IXMLDocument::GetreadyState ( ) {
  1012.     long _result;
  1013.     HRESULT _hr = get_readyState(&_result);
  1014.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1015.     return _result;
  1016. }
  1017. inline _bstr_t IXMLDocument::Getcharset ( ) {
  1018.     BSTR _result;
  1019.     HRESULT _hr = get_charset(&_result);
  1020.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1021.     return _bstr_t(_result, false);
  1022. }
  1023. inline void IXMLDocument::Putcharset ( _bstr_t p ) {
  1024.     HRESULT _hr = put_charset(p);
  1025.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1026. }
  1027. inline _bstr_t IXMLDocument::Getversion ( ) {
  1028.     BSTR _result;
  1029.     HRESULT _hr = get_version(&_result);
  1030.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1031.     return _bstr_t(_result, false);
  1032. }
  1033. inline _bstr_t IXMLDocument::Getdoctype ( ) {
  1034.     BSTR _result;
  1035.     HRESULT _hr = get_doctype(&_result);
  1036.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1037.     return _bstr_t(_result, false);
  1038. }
  1039. inline _bstr_t IXMLDocument::GetdtdURL ( ) {
  1040.     BSTR _result;
  1041.     HRESULT _hr = get_dtdURL(&_result);
  1042.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1043.     return _bstr_t(_result, false);
  1044. }
  1045. inline IXMLElementPtr IXMLDocument::createElement ( const _variant_t & vType, const _variant_t & var1 ) {
  1046.     struct IXMLElement * _result;
  1047.     HRESULT _hr = raw_createElement(vType, var1, &_result);
  1048.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1049.     return IXMLElementPtr(_result, false);
  1050. }
  1051. //
  1052. // interface IXMLElement wrapper method implementations
  1053. //
  1054. inline _bstr_t IXMLElement::GettagName ( ) {
  1055.     BSTR _result;
  1056.     HRESULT _hr = get_tagName(&_result);
  1057.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1058.     return _bstr_t(_result, false);
  1059. }
  1060. inline void IXMLElement::PuttagName ( _bstr_t p ) {
  1061.     HRESULT _hr = put_tagName(p);
  1062.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1063. }
  1064. inline IXMLElementPtr IXMLElement::Getparent ( ) {
  1065.     struct IXMLElement * _result;
  1066.     HRESULT _hr = get_parent(&_result);
  1067.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1068.     return IXMLElementPtr(_result, false);
  1069. }
  1070. inline HRESULT IXMLElement::setAttribute ( _bstr_t strPropertyName, const _variant_t & PropertyValue ) {
  1071.     HRESULT _hr = raw_setAttribute(strPropertyName, PropertyValue);
  1072.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1073.     return _hr;
  1074. }
  1075. inline _variant_t IXMLElement::getAttribute ( _bstr_t strPropertyName ) {
  1076.     VARIANT _result;
  1077.     VariantInit(&_result);
  1078.     HRESULT _hr = raw_getAttribute(strPropertyName, &_result);
  1079.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1080.     return _variant_t(_result, false);
  1081. }
  1082. inline HRESULT IXMLElement::removeAttribute ( _bstr_t strPropertyName ) {
  1083.     HRESULT _hr = raw_removeAttribute(strPropertyName);
  1084.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1085.     return _hr;
  1086. }
  1087. inline IXMLElementCollectionPtr IXMLElement::Getchildren ( ) {
  1088.     struct IXMLElementCollection * _result;
  1089.     HRESULT _hr = get_children(&_result);
  1090.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1091.     return IXMLElementCollectionPtr(_result, false);
  1092. }
  1093. inline long IXMLElement::Gettype ( ) {
  1094.     long _result;
  1095.     HRESULT _hr = get_type(&_result);
  1096.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1097.     return _result;
  1098. }
  1099. inline _bstr_t IXMLElement::Gettext ( ) {
  1100.     BSTR _result;
  1101.     HRESULT _hr = get_text(&_result);
  1102.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1103.     return _bstr_t(_result, false);
  1104. }
  1105. inline void IXMLElement::Puttext ( _bstr_t p ) {
  1106.     HRESULT _hr = put_text(p);
  1107.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1108. }
  1109. inline HRESULT IXMLElement::addChild ( struct IXMLElement * pChildElem, long lIndex, long lReserved ) {
  1110.     HRESULT _hr = raw_addChild(pChildElem, lIndex, lReserved);
  1111.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1112.     return _hr;
  1113. }
  1114. inline HRESULT IXMLElement::removeChild ( struct IXMLElement * pChildElem ) {
  1115.     HRESULT _hr = raw_removeChild(pChildElem);
  1116.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1117.     return _hr;
  1118. }
  1119. //
  1120. // interface IXMLDocument2 wrapper method implementations
  1121. //
  1122. inline IXMLElement2Ptr IXMLDocument2::Getroot ( ) {
  1123.     struct IXMLElement2 * _result;
  1124.     HRESULT _hr = get_root(&_result);
  1125.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1126.     return IXMLElement2Ptr(_result, false);
  1127. }
  1128. inline _bstr_t IXMLDocument2::GetfileSize ( ) {
  1129.     BSTR _result;
  1130.     HRESULT _hr = get_fileSize(&_result);
  1131.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1132.     return _bstr_t(_result, false);
  1133. }
  1134. inline _bstr_t IXMLDocument2::GetfileModifiedDate ( ) {
  1135.     BSTR _result;
  1136.     HRESULT _hr = get_fileModifiedDate(&_result);
  1137.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1138.     return _bstr_t(_result, false);
  1139. }
  1140. inline _bstr_t IXMLDocument2::GetfileUpdatedDate ( ) {
  1141.     BSTR _result;
  1142.     HRESULT _hr = get_fileUpdatedDate(&_result);
  1143.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1144.     return _bstr_t(_result, false);
  1145. }
  1146. inline _bstr_t IXMLDocument2::Geturl ( ) {
  1147.     BSTR _result;
  1148.     HRESULT _hr = get_url(&_result);
  1149.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1150.     return _bstr_t(_result, false);
  1151. }
  1152. inline void IXMLDocument2::Puturl ( _bstr_t p ) {
  1153.     HRESULT _hr = put_url(p);
  1154.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1155. }
  1156. inline _bstr_t IXMLDocument2::GetmimeType ( ) {
  1157.     BSTR _result;
  1158.     HRESULT _hr = get_mimeType(&_result);
  1159.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1160.     return _bstr_t(_result, false);
  1161. }
  1162. inline long IXMLDocument2::GetreadyState ( ) {
  1163.     long _result;
  1164.     HRESULT _hr = get_readyState(&_result);
  1165.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1166.     return _result;
  1167. }
  1168. inline _bstr_t IXMLDocument2::Getcharset ( ) {
  1169.     BSTR _result;
  1170.     HRESULT _hr = get_charset(&_result);
  1171.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1172.     return _bstr_t(_result, false);
  1173. }
  1174. inline void IXMLDocument2::Putcharset ( _bstr_t p ) {
  1175.     HRESULT _hr = put_charset(p);
  1176.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1177. }
  1178. inline _bstr_t IXMLDocument2::Getversion ( ) {
  1179.     BSTR _result;
  1180.     HRESULT _hr = get_version(&_result);
  1181.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1182.     return _bstr_t(_result, false);
  1183. }
  1184. inline _bstr_t IXMLDocument2::Getdoctype ( ) {
  1185.     BSTR _result;
  1186.     HRESULT _hr = get_doctype(&_result);
  1187.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1188.     return _bstr_t(_result, false);
  1189. }
  1190. inline _bstr_t IXMLDocument2::GetdtdURL ( ) {
  1191.     BSTR _result;
  1192.     HRESULT _hr = get_dtdURL(&_result);
  1193.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1194.     return _bstr_t(_result, false);
  1195. }
  1196. inline IXMLElement2Ptr IXMLDocument2::createElement ( const _variant_t & vType, const _variant_t & var1 ) {
  1197.     struct IXMLElement2 * _result;
  1198.     HRESULT _hr = raw_createElement(vType, var1, &_result);
  1199.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1200.     return IXMLElement2Ptr(_result, false);
  1201. }
  1202. inline VARIANT_BOOL IXMLDocument2::Getasync ( ) {
  1203.     VARIANT_BOOL _result;
  1204.     HRESULT _hr = get_async(&_result);
  1205.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1206.     return _result;
  1207. }
  1208. inline void IXMLDocument2::Putasync ( VARIANT_BOOL pf ) {
  1209.     HRESULT _hr = put_async(pf);
  1210.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1211. }
  1212. //
  1213. // interface IXMLElement2 wrapper method implementations
  1214. //
  1215. inline _bstr_t IXMLElement2::GettagName ( ) {
  1216.     BSTR _result;
  1217.     HRESULT _hr = get_tagName(&_result);
  1218.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1219.     return _bstr_t(_result, false);
  1220. }
  1221. inline void IXMLElement2::PuttagName ( _bstr_t p ) {
  1222.     HRESULT _hr = put_tagName(p);
  1223.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1224. }
  1225. inline IXMLElement2Ptr IXMLElement2::Getparent ( ) {
  1226.     struct IXMLElement2 * _result;
  1227.     HRESULT _hr = get_parent(&_result);
  1228.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1229.     return IXMLElement2Ptr(_result, false);
  1230. }
  1231. inline HRESULT IXMLElement2::setAttribute ( _bstr_t strPropertyName, const _variant_t & PropertyValue ) {
  1232.     HRESULT _hr = raw_setAttribute(strPropertyName, PropertyValue);
  1233.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1234.     return _hr;
  1235. }
  1236. inline _variant_t IXMLElement2::getAttribute ( _bstr_t strPropertyName ) {
  1237.     VARIANT _result;
  1238.     VariantInit(&_result);
  1239.     HRESULT _hr = raw_getAttribute(strPropertyName, &_result);
  1240.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1241.     return _variant_t(_result, false);
  1242. }
  1243. inline HRESULT IXMLElement2::removeAttribute ( _bstr_t strPropertyName ) {
  1244.     HRESULT _hr = raw_removeAttribute(strPropertyName);
  1245.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1246.     return _hr;
  1247. }
  1248. inline IXMLElementCollectionPtr IXMLElement2::Getchildren ( ) {
  1249.     struct IXMLElementCollection * _result;
  1250.     HRESULT _hr = get_children(&_result);
  1251.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1252.     return IXMLElementCollectionPtr(_result, false);
  1253. }
  1254. inline long IXMLElement2::Gettype ( ) {
  1255.     long _result;
  1256.     HRESULT _hr = get_type(&_result);
  1257.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1258.     return _result;
  1259. }
  1260. inline _bstr_t IXMLElement2::Gettext ( ) {
  1261.     BSTR _result;
  1262.     HRESULT _hr = get_text(&_result);
  1263.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1264.     return _bstr_t(_result, false);
  1265. }
  1266. inline void IXMLElement2::Puttext ( _bstr_t p ) {
  1267.     HRESULT _hr = put_text(p);
  1268.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1269. }
  1270. inline HRESULT IXMLElement2::addChild ( struct IXMLElement2 * pChildElem, long lIndex, long lReserved ) {
  1271.     HRESULT _hr = raw_addChild(pChildElem, lIndex, lReserved);
  1272.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1273.     return _hr;
  1274. }
  1275. inline HRESULT IXMLElement2::removeChild ( struct IXMLElement2 * pChildElem ) {
  1276.     HRESULT _hr = raw_removeChild(pChildElem);
  1277.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1278.     return _hr;
  1279. }
  1280. inline IXMLElementCollectionPtr IXMLElement2::Getattributes ( ) {
  1281.     struct IXMLElementCollection * _result;
  1282.     HRESULT _hr = get_attributes(&_result);
  1283.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1284.     return IXMLElementCollectionPtr(_result, false);
  1285. }
  1286. //
  1287. // interface IXMLAttribute wrapper method implementations
  1288. //
  1289. inline _bstr_t IXMLAttribute::Getname ( ) {
  1290.     BSTR _result;
  1291.     HRESULT _hr = get_name(&_result);
  1292.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1293.     return _bstr_t(_result, false);
  1294. }
  1295. inline _bstr_t IXMLAttribute::Getvalue ( ) {
  1296.     BSTR _result;
  1297.     HRESULT _hr = get_value(&_result);
  1298.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1299.     return _bstr_t(_result, false);
  1300. }
  1301. //
  1302. // interface IXMLError wrapper method implementations
  1303. //
  1304. inline HRESULT IXMLError::GetErrorInfo ( struct _xml_error * pErrorReturn ) {
  1305.     HRESULT _hr = raw_GetErrorInfo(pErrorReturn);
  1306.     if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  1307.     return _hr;
  1308. }