ReactOS 0.4.16-dev-2216-ga08d639
attribute.c
Go to the documentation of this file.
1/*
2 * DOM Attribute implementation
3 *
4 * Copyright 2006 Huw Davies
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21#define COBJMACROS
22
23#include <stdarg.h>
24#include <libxml/parser.h>
25#include <libxml/xmlerror.h>
26#include <libxml/HTMLtree.h>
27
28#include "windef.h"
29#include "winbase.h"
30#include "winuser.h"
31#include "ole2.h"
32#include "msxml6.h"
33
34#include "msxml_private.h"
35
36#include "wine/debug.h"
37
39
40static const xmlChar xmlns[] = "xmlns";
41
42typedef struct _domattr
43{
49
50static const tid_t domattr_se_tids[] = {
54};
55
57{
58 return CONTAINING_RECORD(iface, domattr, IXMLDOMAttribute_iface);
59}
60
62 IXMLDOMAttribute *iface,
64 void** ppvObject )
65{
67 TRACE("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppvObject);
68
69 if ( IsEqualGUID( riid, &IID_IXMLDOMAttribute ) ||
70 IsEqualGUID( riid, &IID_IXMLDOMNode ) ||
73 {
74 *ppvObject = iface;
75 }
76 else if(node_query_interface(&This->node, riid, ppvObject))
77 {
78 return *ppvObject ? S_OK : E_NOINTERFACE;
79 }
80 else if(IsEqualGUID( riid, &IID_ISupportErrorInfo ))
81 {
83 }
84 else
85 {
86 TRACE("Unsupported interface %s\n", debugstr_guid(riid));
87 *ppvObject = NULL;
88 return E_NOINTERFACE;
89 }
90
91 IXMLDOMAttribute_AddRef(iface);
92 return S_OK;
93}
94
96 IXMLDOMAttribute *iface )
97{
100 TRACE("%p, refcount %lu.\n", iface, ref);
101 return ref;
102}
103
105 IXMLDOMAttribute *iface )
106{
109
110 TRACE("%p, refcount %lu.\n", iface, ref);
111 if ( ref == 0 )
112 {
113 destroy_xmlnode(&This->node);
114 if ( This->floating )
115 {
116 xmlFreeNs( This->node.node->ns );
117 xmlFreeNode( This->node.node );
118 }
119 free( This );
120 }
121
122 return ref;
123}
124
126 IXMLDOMAttribute *iface,
127 UINT* pctinfo )
128{
130 return IDispatchEx_GetTypeInfoCount(&This->node.dispex.IDispatchEx_iface, pctinfo);
131}
132
134 IXMLDOMAttribute *iface,
135 UINT iTInfo, LCID lcid,
136 ITypeInfo** ppTInfo )
137{
139 return IDispatchEx_GetTypeInfo(&This->node.dispex.IDispatchEx_iface,
140 iTInfo, lcid, ppTInfo);
141}
142
144 IXMLDOMAttribute *iface,
145 REFIID riid, LPOLESTR* rgszNames,
146 UINT cNames, LCID lcid, DISPID* rgDispId )
147{
149 return IDispatchEx_GetIDsOfNames(&This->node.dispex.IDispatchEx_iface,
150 riid, rgszNames, cNames, lcid, rgDispId);
151}
152
154 IXMLDOMAttribute *iface,
155 DISPID dispIdMember, REFIID riid, LCID lcid,
156 WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarResult,
157 EXCEPINFO* pExcepInfo, UINT* puArgErr )
158{
160 return IDispatchEx_Invoke(&This->node.dispex.IDispatchEx_iface,
161 dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
162}
163
165 IXMLDOMAttribute *iface,
166 BSTR* p )
167{
169
170 TRACE("(%p)->(%p)\n", This, p);
171
172 return node_get_nodeName(&This->node, p);
173}
174
176 IXMLDOMAttribute *iface,
177 VARIANT* value)
178{
180
181 TRACE("(%p)->(%p)\n", This, value);
182
183 return node_get_content(&This->node, value);
184}
185
187 IXMLDOMAttribute *iface,
189{
191
192 TRACE("(%p)->(%s)\n", This, debugstr_variant(&value));
193
194 return node_put_value_escaped(&This->node, &value);
195}
196
198 IXMLDOMAttribute *iface,
199 DOMNodeType* domNodeType )
200{
202
203 TRACE("(%p)->(%p)\n", This, domNodeType);
204
205 *domNodeType = NODE_ATTRIBUTE;
206 return S_OK;
207}
208
210 IXMLDOMAttribute *iface,
212{
214 TRACE("(%p)->(%p)\n", This, parent);
215 if (!parent) return E_INVALIDARG;
216 *parent = NULL;
217 return S_FALSE;
218}
219
221 IXMLDOMAttribute *iface,
222 IXMLDOMNodeList** outList)
223{
225
226 TRACE("(%p)->(%p)\n", This, outList);
227
228 return node_get_child_nodes(&This->node, outList);
229}
230
232 IXMLDOMAttribute *iface,
233 IXMLDOMNode** domNode)
234{
236
237 TRACE("(%p)->(%p)\n", This, domNode);
238
239 return node_get_first_child(&This->node, domNode);
240}
241
243 IXMLDOMAttribute *iface,
244 IXMLDOMNode** domNode)
245{
247
248 TRACE("(%p)->(%p)\n", This, domNode);
249
250 return node_get_last_child(&This->node, domNode);
251}
252
254 IXMLDOMAttribute *iface,
255 IXMLDOMNode** domNode)
256{
258
259 TRACE("(%p)->(%p)\n", This, domNode);
260
261 return return_null_node(domNode);
262}
263
265 IXMLDOMAttribute *iface,
266 IXMLDOMNode** domNode)
267{
269
270 TRACE("(%p)->(%p)\n", This, domNode);
271
272 return return_null_node(domNode);
273}
274
276 IXMLDOMAttribute *iface,
277 IXMLDOMNamedNodeMap** attributeMap)
278{
280
281 TRACE("(%p)->(%p)\n", This, attributeMap);
282
283 return return_null_ptr((void**)attributeMap);
284}
285
287 IXMLDOMAttribute *iface,
288 IXMLDOMNode* newNode, VARIANT refChild,
289 IXMLDOMNode** old_node)
290{
293 HRESULT hr;
294
295 FIXME("(%p)->(%p %s %p) needs test\n", This, newNode, debugstr_variant(&refChild), old_node);
296
297 if (!newNode) return E_INVALIDARG;
298
299 hr = IXMLDOMNode_get_nodeType(newNode, &type);
300 if (hr != S_OK) return hr;
301
302 TRACE("new node type %d\n", type);
303 switch (type)
304 {
305 case NODE_ATTRIBUTE:
307 case NODE_COMMENT:
308 case NODE_ELEMENT:
310 if (old_node) *old_node = NULL;
311 return E_FAIL;
312 default:
313 return node_insert_before(&This->node, newNode, &refChild, old_node);
314 }
315}
316
318 IXMLDOMAttribute *iface,
319 IXMLDOMNode* newNode,
320 IXMLDOMNode* oldNode,
321 IXMLDOMNode** outOldNode)
322{
324
325 FIXME("(%p)->(%p %p %p) needs tests\n", This, newNode, oldNode, outOldNode);
326
327 return node_replace_child(&This->node, newNode, oldNode, outOldNode);
328}
329
331 IXMLDOMAttribute *iface,
332 IXMLDOMNode *child, IXMLDOMNode **oldChild)
333{
335 TRACE("(%p)->(%p %p)\n", This, child, oldChild);
336 return node_remove_child(&This->node, child, oldChild);
337}
338
340 IXMLDOMAttribute *iface,
341 IXMLDOMNode *child, IXMLDOMNode **outChild)
342{
344 TRACE("(%p)->(%p %p)\n", This, child, outChild);
345 return node_append_child(&This->node, child, outChild);
346}
347
349 IXMLDOMAttribute *iface,
351{
353 TRACE("(%p)->(%p)\n", This, ret);
354 return node_has_childnodes(&This->node, ret);
355}
356
358 IXMLDOMAttribute *iface,
359 IXMLDOMDocument **doc)
360{
362 TRACE("(%p)->(%p)\n", This, doc);
363 return node_get_owner_doc(&This->node, doc);
364}
365
367 IXMLDOMAttribute *iface,
368 VARIANT_BOOL deep, IXMLDOMNode** outNode)
369{
371 TRACE("(%p)->(%d %p)\n", This, deep, outNode);
372 return node_clone( &This->node, deep, outNode );
373}
374
376 IXMLDOMAttribute *iface,
377 BSTR* p)
378{
380 static const WCHAR attributeW[] = {'a','t','t','r','i','b','u','t','e',0};
381
382 TRACE("(%p)->(%p)\n", This, p);
383
384 return return_bstr(attributeW, p);
385}
386
388 IXMLDOMAttribute *iface,
389 BSTR* p)
390{
392 TRACE("(%p)->(%p)\n", This, p);
393 return node_get_text(&This->node, p);
394}
395
397 IXMLDOMAttribute *iface,
398 BSTR p)
399{
401 TRACE("(%p)->(%s)\n", This, debugstr_w(p));
402 return node_put_text( &This->node, p );
403}
404
406 IXMLDOMAttribute *iface,
407 VARIANT_BOOL* isSpecified)
408{
410 FIXME("(%p)->(%p) stub!\n", This, isSpecified);
411 *isSpecified = VARIANT_TRUE;
412 return S_OK;
413}
414
416 IXMLDOMAttribute *iface,
417 IXMLDOMNode** definitionNode)
418{
420 FIXME("(%p)->(%p)\n", This, definitionNode);
421 return E_NOTIMPL;
422}
423
425 IXMLDOMAttribute *iface,
426 VARIANT* value)
427{
429 IXMLDOMDocument *doc;
430 HRESULT hr;
431
432 TRACE("(%p)->(%p)\n", This, value);
433
434 hr = IXMLDOMAttribute_get_ownerDocument(iface, &doc);
435 if (hr == S_OK)
436 {
437 IXMLDOMDocument3 *doc3;
438
439 hr = IXMLDOMDocument_QueryInterface(doc, &IID_IXMLDOMDocument3, (void**)&doc3);
440 IXMLDOMDocument_Release(doc);
441
442 if (hr == S_OK)
443 {
444 VARIANT schemas;
445
446 hr = IXMLDOMDocument3_get_schemas(doc3, &schemas);
447 IXMLDOMDocument3_Release(doc3);
448
449 if (hr != S_OK)
450 return IXMLDOMAttribute_get_value(iface, value);
451 else
452 {
453 FIXME("need to query schema for attribute type\n");
454 VariantClear(&schemas);
455 }
456 }
457 }
458
459 return return_null_var(value);
460}
461
463 IXMLDOMAttribute *iface,
464 VARIANT typedValue)
465{
467 FIXME("(%p)->(%s)\n", This, debugstr_variant(&typedValue));
468 return E_NOTIMPL;
469}
470
472 IXMLDOMAttribute *iface,
473 VARIANT* typename)
474{
476 TRACE("(%p)->(%p)\n", This, typename);
477 return return_null_var( typename );
478}
479
481 IXMLDOMAttribute *iface,
482 BSTR p)
483{
485
486 FIXME("(%p)->(%s)\n", This, debugstr_w(p));
487
488 if(!p)
489 return E_INVALIDARG;
490
491 return E_FAIL;
492}
493
495 IXMLDOMAttribute *iface,
496 BSTR* p)
497{
499
500 TRACE("(%p)->(%p)\n", This, p);
501
502 return node_get_xml(&This->node, FALSE, p);
503}
504
506 IXMLDOMAttribute *iface,
508{
510 TRACE("(%p)->(%p %p)\n", This, node, p);
511 return node_transform_node(&This->node, node, p);
512}
513
515 IXMLDOMAttribute *iface,
516 BSTR p, IXMLDOMNodeList** outList)
517{
519 TRACE("(%p)->(%s %p)\n", This, debugstr_w(p), outList);
520 return node_select_nodes(&This->node, p, outList);
521}
522
524 IXMLDOMAttribute *iface,
525 BSTR p, IXMLDOMNode** outNode)
526{
528 TRACE("(%p)->(%s %p)\n", This, debugstr_w(p), outNode);
529 return node_select_singlenode(&This->node, p, outNode);
530}
531
533 IXMLDOMAttribute *iface,
534 VARIANT_BOOL* isParsed)
535{
537 FIXME("(%p)->(%p) stub!\n", This, isParsed);
538 *isParsed = VARIANT_TRUE;
539 return S_OK;
540}
541
543 IXMLDOMAttribute *iface,
544 BSTR* p)
545{
547 xmlNsPtr ns = This->node.node->ns;
548 BSTR nodename, pfx;
549 BOOL is6, isdefault;
550 HRESULT hr;
551
552 TRACE("(%p)->(%p)\n", This, p);
553
554 if (!p)
555 return E_INVALIDARG;
556
557 *p = NULL;
558 nodename = NULL;
559 hr = IXMLDOMAttribute_get_nodeName(iface, &nodename);
560 if (FAILED(hr))
561 return hr;
562
563 pfx = NULL;
564 hr = IXMLDOMAttribute_get_prefix(iface, &pfx);
565 if (FAILED(hr))
566 {
567 SysFreeString(nodename);
568 return hr;
569 }
570
571 is6 = xmldoc_version(This->node.node->doc) == MSXML6;
572 isdefault = !wcscmp(nodename, L"xmlns");
573 if (isdefault || (pfx && !wcscmp(L"xmlns", pfx)))
574 {
575 if (is6)
576 *p = SysAllocString(L"http://www.w3.org/2000/xmlns/");
577 else if (!ns || !isdefault)
578 *p = SysAllocStringLen(NULL, 0);
579 else
580 *p = SysAllocString(L"xmlns");
581 }
582 else if (ns && ns->href)
583 *p = bstr_from_xmlChar(ns->href);
584
585 SysFreeString(nodename);
586 SysFreeString(pfx);
587
588 TRACE("uri: %s\n", debugstr_w(*p));
589
590 return *p ? S_OK : S_FALSE;
591}
592
594 IXMLDOMAttribute *iface,
595 BSTR* prefix)
596{
598 xmlNsPtr ns = This->node.node->ns;
599
600 TRACE("(%p)->(%p)\n", This, prefix);
601
602 if (!prefix) return E_INVALIDARG;
603
604 *prefix = NULL;
605
606 if (xmldoc_version(This->node.node->doc) != MSXML6 &&
607 xmlStrEqual(This->node.node->name, xmlns))
609 else if (ns && ns->prefix)
611
612 TRACE("prefix: %s\n", debugstr_w(*prefix));
613
614 return *prefix ? S_OK : S_FALSE;
615}
616
618 IXMLDOMAttribute *iface,
619 BSTR* name)
620{
622 TRACE("(%p)->(%p)\n", This, name);
623 return node_get_base_name( &This->node, name );
624}
625
627 IXMLDOMAttribute *iface,
628 IXMLDOMNode* domNode, VARIANT var1)
629{
631 FIXME("(%p)->(%p %s)\n", This, domNode, debugstr_variant(&var1));
632 return E_NOTIMPL;
633}
634
636 IXMLDOMAttribute *iface,
637 BSTR *p)
638{
640
641 TRACE("(%p)->(%p)\n", This, p);
642
643 return node_get_nodeName(&This->node, p);
644}
645
647 IXMLDOMAttribute *iface,
648 VARIANT *value)
649{
651
652 TRACE("(%p)->(%p)\n", This, value);
653
654 return node_get_content(&This->node, value);
655}
656
658 IXMLDOMAttribute *iface,
660{
662
663 TRACE("(%p)->(%s)\n", This, debugstr_variant(&value));
664
665 return node_put_value_escaped(&This->node, &value);
666}
667
668static const struct IXMLDOMAttributeVtbl domattr_vtbl =
669{
716};
717
718static const tid_t domattr_iface_tids[] = {
720 0
721};
722
724 NULL,
726 NULL,
728};
729
730IUnknown* create_attribute( xmlNodePtr attribute, BOOL floating )
731{
732 domattr *This;
733
734 This = malloc(sizeof(*This));
735 if ( !This )
736 return NULL;
737
738 This->IXMLDOMAttribute_iface.lpVtbl = &domattr_vtbl;
739 This->ref = 1;
740 This->floating = floating;
741
742 init_xmlnode(&This->node, attribute, (IXMLDOMNode*)&This->IXMLDOMAttribute_iface, &domattr_dispex);
743
744 return (IUnknown*)&This->IXMLDOMAttribute_iface;
745}
#define InterlockedIncrement
Definition: armddk.h:53
#define InterlockedDecrement
Definition: armddk.h:52
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
Definition: precomp.h:23
#define FIXME(fmt,...)
Definition: precomp.h:53
const GUID IID_IUnknown
#define E_INVALIDARG
Definition: ddrawi.h:101
#define E_NOTIMPL
Definition: ddrawi.h:99
#define E_FAIL
Definition: ddrawi.h:102
#define free
Definition: debug_ros.c:5
#define malloc
Definition: debug_ros.c:4
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
OLECHAR * BSTR
Definition: compat.h:2293
short VARIANT_BOOL
Definition: compat.h:2290
LCID lcid
Definition: locale.c:5656
_ACRTIMP int __cdecl wcscmp(const wchar_t *, const wchar_t *)
Definition: wcs.c:1972
static HRESULT WINAPI domattr_get_attributes(IXMLDOMAttribute *iface, IXMLDOMNamedNodeMap **attributeMap)
Definition: attribute.c:275
static HRESULT WINAPI domattr_get_childNodes(IXMLDOMAttribute *iface, IXMLDOMNodeList **outList)
Definition: attribute.c:220
static dispex_static_data_t domattr_dispex
Definition: attribute.c:723
static const xmlChar xmlns[]
Definition: attribute.c:40
static HRESULT WINAPI domattr_put_dataType(IXMLDOMAttribute *iface, BSTR p)
Definition: attribute.c:480
static HRESULT WINAPI domattr_GetIDsOfNames(IXMLDOMAttribute *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
Definition: attribute.c:143
static HRESULT WINAPI domattr_removeChild(IXMLDOMAttribute *iface, IXMLDOMNode *child, IXMLDOMNode **oldChild)
Definition: attribute.c:330
static const tid_t domattr_se_tids[]
Definition: attribute.c:50
static HRESULT WINAPI domattr_hasChildNodes(IXMLDOMAttribute *iface, VARIANT_BOOL *ret)
Definition: attribute.c:348
static HRESULT WINAPI domattr_get_firstChild(IXMLDOMAttribute *iface, IXMLDOMNode **domNode)
Definition: attribute.c:231
static const struct IXMLDOMAttributeVtbl domattr_vtbl
Definition: attribute.c:668
static HRESULT WINAPI domattr_get_nodeValue(IXMLDOMAttribute *iface, VARIANT *value)
Definition: attribute.c:175
static domattr * impl_from_IXMLDOMAttribute(IXMLDOMAttribute *iface)
Definition: attribute.c:56
static HRESULT WINAPI domattr_get_prefix(IXMLDOMAttribute *iface, BSTR *prefix)
Definition: attribute.c:593
static HRESULT WINAPI domattr_selectSingleNode(IXMLDOMAttribute *iface, BSTR p, IXMLDOMNode **outNode)
Definition: attribute.c:523
static HRESULT WINAPI domattr_put_text(IXMLDOMAttribute *iface, BSTR p)
Definition: attribute.c:396
static ULONG WINAPI domattr_AddRef(IXMLDOMAttribute *iface)
Definition: attribute.c:95
static HRESULT WINAPI domattr_replaceChild(IXMLDOMAttribute *iface, IXMLDOMNode *newNode, IXMLDOMNode *oldNode, IXMLDOMNode **outOldNode)
Definition: attribute.c:317
static HRESULT WINAPI domattr_get_dataType(IXMLDOMAttribute *iface, VARIANT *typename)
Definition: attribute.c:471
static HRESULT WINAPI domattr_get_nextSibling(IXMLDOMAttribute *iface, IXMLDOMNode **domNode)
Definition: attribute.c:264
static HRESULT WINAPI domattr_get_text(IXMLDOMAttribute *iface, BSTR *p)
Definition: attribute.c:387
static HRESULT WINAPI domattr_put_nodeValue(IXMLDOMAttribute *iface, VARIANT value)
Definition: attribute.c:186
static HRESULT WINAPI domattr_put_nodeTypedValue(IXMLDOMAttribute *iface, VARIANT typedValue)
Definition: attribute.c:462
static HRESULT WINAPI domattr_put_value(IXMLDOMAttribute *iface, VARIANT value)
Definition: attribute.c:657
static HRESULT WINAPI domattr_get_value(IXMLDOMAttribute *iface, VARIANT *value)
Definition: attribute.c:646
static HRESULT WINAPI domattr_get_previousSibling(IXMLDOMAttribute *iface, IXMLDOMNode **domNode)
Definition: attribute.c:253
static HRESULT WINAPI domattr_get_definition(IXMLDOMAttribute *iface, IXMLDOMNode **definitionNode)
Definition: attribute.c:415
static HRESULT WINAPI domattr_transformNode(IXMLDOMAttribute *iface, IXMLDOMNode *node, BSTR *p)
Definition: attribute.c:505
static HRESULT WINAPI domattr_get_xml(IXMLDOMAttribute *iface, BSTR *p)
Definition: attribute.c:494
static HRESULT WINAPI domattr_insertBefore(IXMLDOMAttribute *iface, IXMLDOMNode *newNode, VARIANT refChild, IXMLDOMNode **old_node)
Definition: attribute.c:286
static HRESULT WINAPI domattr_get_parsed(IXMLDOMAttribute *iface, VARIANT_BOOL *isParsed)
Definition: attribute.c:532
static HRESULT WINAPI domattr_get_namespaceURI(IXMLDOMAttribute *iface, BSTR *p)
Definition: attribute.c:542
static HRESULT WINAPI domattr_Invoke(IXMLDOMAttribute *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
Definition: attribute.c:153
static HRESULT WINAPI domattr_GetTypeInfoCount(IXMLDOMAttribute *iface, UINT *pctinfo)
Definition: attribute.c:125
IUnknown * create_attribute(xmlNodePtr attribute, BOOL floating)
Definition: attribute.c:730
static HRESULT WINAPI domattr_appendChild(IXMLDOMAttribute *iface, IXMLDOMNode *child, IXMLDOMNode **outChild)
Definition: attribute.c:339
static HRESULT WINAPI domattr_GetTypeInfo(IXMLDOMAttribute *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
Definition: attribute.c:133
static HRESULT WINAPI domattr_get_name(IXMLDOMAttribute *iface, BSTR *p)
Definition: attribute.c:635
static HRESULT WINAPI domattr_get_lastChild(IXMLDOMAttribute *iface, IXMLDOMNode **domNode)
Definition: attribute.c:242
static HRESULT WINAPI domattr_get_parentNode(IXMLDOMAttribute *iface, IXMLDOMNode **parent)
Definition: attribute.c:209
static ULONG WINAPI domattr_Release(IXMLDOMAttribute *iface)
Definition: attribute.c:104
static HRESULT WINAPI domattr_get_baseName(IXMLDOMAttribute *iface, BSTR *name)
Definition: attribute.c:617
static HRESULT WINAPI domattr_get_specified(IXMLDOMAttribute *iface, VARIANT_BOOL *isSpecified)
Definition: attribute.c:405
static HRESULT WINAPI domattr_QueryInterface(IXMLDOMAttribute *iface, REFIID riid, void **ppvObject)
Definition: attribute.c:61
static HRESULT WINAPI domattr_transformNodeToObject(IXMLDOMAttribute *iface, IXMLDOMNode *domNode, VARIANT var1)
Definition: attribute.c:626
static HRESULT WINAPI domattr_get_nodeTypedValue(IXMLDOMAttribute *iface, VARIANT *value)
Definition: attribute.c:424
static HRESULT WINAPI domattr_cloneNode(IXMLDOMAttribute *iface, VARIANT_BOOL deep, IXMLDOMNode **outNode)
Definition: attribute.c:366
static HRESULT WINAPI domattr_get_ownerDocument(IXMLDOMAttribute *iface, IXMLDOMDocument **doc)
Definition: attribute.c:357
static HRESULT WINAPI domattr_get_nodeName(IXMLDOMAttribute *iface, BSTR *p)
Definition: attribute.c:164
static HRESULT WINAPI domattr_get_nodeTypeString(IXMLDOMAttribute *iface, BSTR *p)
Definition: attribute.c:375
static HRESULT WINAPI domattr_get_nodeType(IXMLDOMAttribute *iface, DOMNodeType *domNodeType)
Definition: attribute.c:197
static const tid_t domattr_iface_tids[]
Definition: attribute.c:718
static HRESULT WINAPI domattr_selectNodes(IXMLDOMAttribute *iface, BSTR p, IXMLDOMNodeList **outList)
Definition: attribute.c:514
struct _domattr domattr
MSXML_VERSION xmldoc_version(xmlDocPtr doc)
Definition: domdoc.c:414
return ret
Definition: mutex.c:146
#define L(x)
Definition: resources.c:13
r parent
Definition: btrfs.c:3010
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned int BOOL
Definition: ntddk_ex.h:94
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GLfloat GLfloat p
Definition: glext.h:8902
tid_t
Definition: ieframe.h:311
REFIID riid
Definition: atlbase.h:39
#define S_OK
Definition: intsafe.h:52
#define FAILED(hr)
Definition: intsafe.h:51
#define debugstr_guid
Definition: kernel32.h:35
#define debugstr_w
Definition: kernel32.h:32
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
static LPOLESTR
Definition: stg_prop.c:27
static VARIANTARG static DISPID
Definition: ordinal.c:49
static HWND child
Definition: cursoricon.c:298
enum tagDOMNodeType DOMNodeType
@ NODE_PROCESSING_INSTRUCTION
Definition: msxml6.idl:119
@ NODE_ATTRIBUTE
Definition: msxml6.idl:114
@ NODE_COMMENT
Definition: msxml6.idl:120
@ NODE_ELEMENT
Definition: msxml6.idl:113
@ NODE_CDATA_SECTION
Definition: msxml6.idl:116
@ MSXML6
Definition: msxml_dispex.h:33
@ IXMLDOMNode_tid
Definition: msxml_dispex.h:51
@ NULL_tid
Definition: msxml_dispex.h:38
@ IXMLDOMAttribute_tid
Definition: msxml_dispex.h:39
static HRESULT return_bstr(const WCHAR *value, BSTR *p)
Definition: msxml_dispex.h:115
HRESULT node_has_childnodes(const xmlnode *, VARIANT_BOOL *)
Definition: node.c:658
HRESULT node_put_value_escaped(xmlnode *, VARIANT *)
Definition: node.c:303
HRESULT node_get_text(const xmlnode *, BSTR *)
Definition: node.c:842
HRESULT node_get_base_name(xmlnode *, BSTR *)
Definition: node.c:1622
HRESULT node_put_text(xmlnode *, BSTR)
Definition: node.c:867
HRESULT node_get_last_child(xmlnode *, IXMLDOMNode **)
Definition: node.c:370
static BSTR bstr_from_xmlChar(const xmlChar *str)
HRESULT node_remove_child(xmlnode *, IXMLDOMNode *, IXMLDOMNode **)
Definition: node.c:608
HRESULT node_replace_child(xmlnode *, IXMLDOMNode *, IXMLDOMNode *, IXMLDOMNode **)
Definition: node.c:543
HRESULT node_clone(xmlnode *, VARIANT_BOOL, IXMLDOMNode **)
Definition: node.c:679
HRESULT node_append_child(xmlnode *, IXMLDOMNode *, IXMLDOMNode **)
Definition: node.c:639
HRESULT node_get_content(xmlnode *, VARIANT *)
Definition: node.c:225
HRESULT node_transform_node(const xmlnode *, IXMLDOMNode *, BSTR *)
Definition: node.c:1553
HRESULT node_select_nodes(const xmlnode *, BSTR, IXMLDOMNodeList **)
Definition: node.c:1558
HRESULT node_get_first_child(xmlnode *, IXMLDOMNode **)
Definition: node.c:365
static HRESULT return_null_var(VARIANT *p)
void destroy_xmlnode(xmlnode *)
Definition: node.c:1638
static HRESULT return_null_ptr(void **p)
HRESULT node_insert_before(xmlnode *, IXMLDOMNode *, const VARIANT *, IXMLDOMNode **)
Definition: node.c:432
HRESULT node_get_nodeName(xmlnode *, BSTR *)
Definition: node.c:178
HRESULT node_select_singlenode(const xmlnode *, BSTR, IXMLDOMNode **)
Definition: node.c:1572
void init_xmlnode(xmlnode *, xmlNodePtr, IXMLDOMNode *, dispex_static_data_t *)
Definition: node.c:1647
HRESULT node_get_owner_doc(const xmlnode *, IXMLDOMDocument **)
Definition: node.c:672
HRESULT node_get_xml(xmlnode *, BOOL, BSTR *)
Definition: node.c:936
HRESULT node_get_child_nodes(xmlnode *, IXMLDOMNodeList **)
Definition: node.c:353
BOOL node_query_interface(xmlnode *, REFIID, void **)
Definition: node.c:66
static HRESULT return_null_node(IXMLDOMNode **p)
HRESULT node_create_supporterrorinfo(const tid_t *, void **)
unsigned int UINT
Definition: ndis.h:50
BSTR WINAPI SysAllocString(LPCOLESTR str)
Definition: oleaut.c:238
void WINAPI DECLSPEC_HOTPATCH SysFreeString(BSTR str)
Definition: oleaut.c:271
BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
Definition: oleaut.c:339
const GUID IID_IDispatch
long LONG
Definition: pedump.c:60
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define REFIID
Definition: guiddef.h:118
DWORD LCID
Definition: nls.h:13
HRESULT hr
Definition: shlfolder.c:183
#define TRACE(s)
Definition: solgame.cpp:4
xmlnode node
Definition: attribute.c:44
IXMLDOMAttribute IXMLDOMAttribute_iface
Definition: attribute.c:45
BOOL floating
Definition: attribute.c:47
LONG ref
Definition: attribute.c:46
Definition: cookie.c:202
Definition: name.c:39
Definition: mxnamespace.c:38
BSTR prefix
Definition: mxnamespace.c:39
Definition: send.c:48
Character const *const prefix
Definition: tempnam.cpp:195
#define CONTAINING_RECORD(address, type, field)
Definition: typedefs.h:260
uint32_t ULONG
Definition: typedefs.h:59
Definition: dlist.c:348
Definition: pdh_main.c:96
HRESULT WINAPI DECLSPEC_HOTPATCH VariantClear(VARIANTARG *pVarg)
Definition: variant.c:648
WINBASEAPI _In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon_undoc.h:337
#define WINAPI
Definition: msvc.h:6
#define S_FALSE
Definition: winerror.h:3451
#define E_NOINTERFACE
Definition: winerror.h:3479
__wchar_t WCHAR
Definition: xmlstorage.h:180
XMLPUBFUN int xmlStrEqual(const xmlChar *str1, const xmlChar *str2)
Definition: xmlstring.c:162
unsigned char xmlChar
Definition: xmlstring.h:28