2 * DOM processing instruction node implementation
4 * Copyright 2006 Huw Davies
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.
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.
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
21 #define WIN32_NO_STATUS
30 # include <libxml/parser.h>
31 //# include <libxml/xmlerror.h>
36 //#include "winuser.h"
40 #include "msxml_private.h"
42 #include <wine/debug.h>
44 WINE_DEFAULT_DEBUG_CHANNEL(msxml
);
48 typedef struct _dom_pi
51 IXMLDOMProcessingInstruction IXMLDOMProcessingInstruction_iface
;
55 static const struct nodemap_funcs dom_pi_attr_map
;
57 static const tid_t dompi_se_tids
[] = {
59 IXMLDOMProcessingInstruction_tid
,
63 static inline dom_pi
*impl_from_IXMLDOMProcessingInstruction( IXMLDOMProcessingInstruction
*iface
)
65 return CONTAINING_RECORD(iface
, dom_pi
, IXMLDOMProcessingInstruction_iface
);
68 static HRESULT WINAPI
dom_pi_QueryInterface(
69 IXMLDOMProcessingInstruction
*iface
,
73 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
74 TRACE("(%p)->(%s %p)\n", This
, debugstr_guid(riid
), ppvObject
);
76 if ( IsEqualGUID( riid
, &IID_IXMLDOMProcessingInstruction
) ||
77 IsEqualGUID( riid
, &IID_IXMLDOMNode
) ||
78 IsEqualGUID( riid
, &IID_IDispatch
) ||
79 IsEqualGUID( riid
, &IID_IUnknown
) )
83 else if(node_query_interface(&This
->node
, riid
, ppvObject
))
85 return *ppvObject
? S_OK
: E_NOINTERFACE
;
87 else if(IsEqualGUID( riid
, &IID_ISupportErrorInfo
))
89 return node_create_supporterrorinfo(dompi_se_tids
, ppvObject
);
93 TRACE("Unsupported interface %s\n", debugstr_guid(riid
));
98 IUnknown_AddRef((IUnknown
*)*ppvObject
);
102 static ULONG WINAPI
dom_pi_AddRef(
103 IXMLDOMProcessingInstruction
*iface
)
105 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
106 ULONG ref
= InterlockedIncrement( &This
->ref
);
107 TRACE("(%p)->(%d)\n", This
, ref
);
111 static ULONG WINAPI
dom_pi_Release(
112 IXMLDOMProcessingInstruction
*iface
)
114 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
115 ULONG ref
= InterlockedDecrement( &This
->ref
);
117 TRACE("(%p)->(%d)\n", This
, ref
);
120 destroy_xmlnode(&This
->node
);
127 static HRESULT WINAPI
dom_pi_GetTypeInfoCount(
128 IXMLDOMProcessingInstruction
*iface
,
131 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
132 return IDispatchEx_GetTypeInfoCount(&This
->node
.dispex
.IDispatchEx_iface
, pctinfo
);
135 static HRESULT WINAPI
dom_pi_GetTypeInfo(
136 IXMLDOMProcessingInstruction
*iface
,
137 UINT iTInfo
, LCID lcid
,
138 ITypeInfo
** ppTInfo
)
140 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
141 return IDispatchEx_GetTypeInfo(&This
->node
.dispex
.IDispatchEx_iface
,
142 iTInfo
, lcid
, ppTInfo
);
145 static HRESULT WINAPI
dom_pi_GetIDsOfNames(
146 IXMLDOMProcessingInstruction
*iface
,
147 REFIID riid
, LPOLESTR
* rgszNames
,
148 UINT cNames
, LCID lcid
, DISPID
* rgDispId
)
150 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
151 return IDispatchEx_GetIDsOfNames(&This
->node
.dispex
.IDispatchEx_iface
,
152 riid
, rgszNames
, cNames
, lcid
, rgDispId
);
155 static HRESULT WINAPI
dom_pi_Invoke(
156 IXMLDOMProcessingInstruction
*iface
,
157 DISPID dispIdMember
, REFIID riid
, LCID lcid
,
158 WORD wFlags
, DISPPARAMS
* pDispParams
, VARIANT
* pVarResult
,
159 EXCEPINFO
* pExcepInfo
, UINT
* puArgErr
)
161 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
162 return IDispatchEx_Invoke(&This
->node
.dispex
.IDispatchEx_iface
,
163 dispIdMember
, riid
, lcid
, wFlags
, pDispParams
, pVarResult
, pExcepInfo
, puArgErr
);
166 static HRESULT WINAPI
dom_pi_get_nodeName(
167 IXMLDOMProcessingInstruction
*iface
,
170 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
172 TRACE("(%p)->(%p)\n", This
, p
);
174 return node_get_nodeName(&This
->node
, p
);
177 static HRESULT WINAPI
dom_pi_get_nodeValue(
178 IXMLDOMProcessingInstruction
*iface
,
181 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
183 TRACE("(%p)->(%p)\n", This
, value
);
185 return node_get_content(&This
->node
, value
);
188 static HRESULT WINAPI
dom_pi_put_nodeValue(
189 IXMLDOMProcessingInstruction
*iface
,
192 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
196 TRACE("(%p)->(%s)\n", This
, debugstr_variant(&value
));
198 /* Cannot set data to a PI node whose target is 'xml' */
199 hr
= IXMLDOMProcessingInstruction_get_nodeName(iface
, &target
);
202 static const WCHAR xmlW
[] = {'x','m','l',0};
203 if(!strcmpW(target
, xmlW
))
205 SysFreeString(target
);
209 SysFreeString(target
);
212 return node_put_value(&This
->node
, &value
);
215 static HRESULT WINAPI
dom_pi_get_nodeType(
216 IXMLDOMProcessingInstruction
*iface
,
217 DOMNodeType
* domNodeType
)
219 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
221 TRACE("(%p)->(%p)\n", This
, domNodeType
);
223 *domNodeType
= NODE_PROCESSING_INSTRUCTION
;
227 static HRESULT WINAPI
dom_pi_get_parentNode(
228 IXMLDOMProcessingInstruction
*iface
,
229 IXMLDOMNode
** parent
)
231 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
233 TRACE("(%p)->(%p)\n", This
, parent
);
235 return node_get_parent(&This
->node
, parent
);
238 static HRESULT WINAPI
dom_pi_get_childNodes(
239 IXMLDOMProcessingInstruction
*iface
,
240 IXMLDOMNodeList
** outList
)
242 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
244 TRACE("(%p)->(%p)\n", This
, outList
);
246 return node_get_child_nodes(&This
->node
, outList
);
249 static HRESULT WINAPI
dom_pi_get_firstChild(
250 IXMLDOMProcessingInstruction
*iface
,
251 IXMLDOMNode
** domNode
)
253 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
255 TRACE("(%p)->(%p)\n", This
, domNode
);
257 return return_null_node(domNode
);
260 static HRESULT WINAPI
dom_pi_get_lastChild(
261 IXMLDOMProcessingInstruction
*iface
,
262 IXMLDOMNode
** domNode
)
264 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
266 TRACE("(%p)->(%p)\n", This
, domNode
);
268 return return_null_node(domNode
);
271 static HRESULT WINAPI
dom_pi_get_previousSibling(
272 IXMLDOMProcessingInstruction
*iface
,
273 IXMLDOMNode
** domNode
)
275 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
277 TRACE("(%p)->(%p)\n", This
, domNode
);
279 return node_get_previous_sibling(&This
->node
, domNode
);
282 static HRESULT WINAPI
dom_pi_get_nextSibling(
283 IXMLDOMProcessingInstruction
*iface
,
284 IXMLDOMNode
** domNode
)
286 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
288 TRACE("(%p)->(%p)\n", This
, domNode
);
290 return node_get_next_sibling(&This
->node
, domNode
);
293 static HRESULT WINAPI
dom_pi_get_attributes(
294 IXMLDOMProcessingInstruction
*iface
,
295 IXMLDOMNamedNodeMap
** map
)
297 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
298 static const WCHAR xmlW
[] = {'x','m','l',0};
302 TRACE("(%p)->(%p)\n", This
, map
);
304 if (!map
) return E_INVALIDARG
;
308 hr
= node_get_nodeName(&This
->node
, &name
);
309 if (hr
!= S_OK
) return hr
;
311 if (!strcmpW(name
, xmlW
))
313 FIXME("created dummy map for <?xml ?>\n");
314 *map
= create_nodemap(This
->node
.node
, &dom_pi_attr_map
);
324 static HRESULT WINAPI
dom_pi_insertBefore(
325 IXMLDOMProcessingInstruction
*iface
,
326 IXMLDOMNode
* newNode
, VARIANT refChild
,
327 IXMLDOMNode
** outOldNode
)
329 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
331 FIXME("(%p)->(%p %s %p) needs test\n", This
, newNode
, debugstr_variant(&refChild
), outOldNode
);
333 return node_insert_before(&This
->node
, newNode
, &refChild
, outOldNode
);
336 static HRESULT WINAPI
dom_pi_replaceChild(
337 IXMLDOMProcessingInstruction
*iface
,
338 IXMLDOMNode
* newNode
,
339 IXMLDOMNode
* oldNode
,
340 IXMLDOMNode
** outOldNode
)
342 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
344 FIXME("(%p)->(%p %p %p) needs test\n", This
, newNode
, oldNode
, outOldNode
);
346 return node_replace_child(&This
->node
, newNode
, oldNode
, outOldNode
);
349 static HRESULT WINAPI
dom_pi_removeChild(
350 IXMLDOMProcessingInstruction
*iface
,
351 IXMLDOMNode
*child
, IXMLDOMNode
**oldChild
)
353 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
354 TRACE("(%p)->(%p %p)\n", This
, child
, oldChild
);
355 return node_remove_child(&This
->node
, child
, oldChild
);
358 static HRESULT WINAPI
dom_pi_appendChild(
359 IXMLDOMProcessingInstruction
*iface
,
360 IXMLDOMNode
*child
, IXMLDOMNode
**outChild
)
362 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
363 TRACE("(%p)->(%p %p)\n", This
, child
, outChild
);
364 return node_append_child(&This
->node
, child
, outChild
);
367 static HRESULT WINAPI
dom_pi_hasChildNodes(
368 IXMLDOMProcessingInstruction
*iface
,
371 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
372 TRACE("(%p)->(%p)\n", This
, ret
);
373 return node_has_childnodes(&This
->node
, ret
);
376 static HRESULT WINAPI
dom_pi_get_ownerDocument(
377 IXMLDOMProcessingInstruction
*iface
,
378 IXMLDOMDocument
**doc
)
380 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
381 TRACE("(%p)->(%p)\n", This
, doc
);
382 return node_get_owner_doc(&This
->node
, doc
);
385 static HRESULT WINAPI
dom_pi_cloneNode(
386 IXMLDOMProcessingInstruction
*iface
,
387 VARIANT_BOOL deep
, IXMLDOMNode
** outNode
)
389 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
390 TRACE("(%p)->(%d %p)\n", This
, deep
, outNode
);
391 return node_clone( &This
->node
, deep
, outNode
);
394 static HRESULT WINAPI
dom_pi_get_nodeTypeString(
395 IXMLDOMProcessingInstruction
*iface
,
398 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
399 static const WCHAR processinginstructionW
[] =
400 {'p','r','o','c','e','s','s','i','n','g','i','n','s','t','r','u','c','t','i','o','n',0};
402 TRACE("(%p)->(%p)\n", This
, p
);
404 return return_bstr(processinginstructionW
, p
);
407 static HRESULT WINAPI
dom_pi_get_text(
408 IXMLDOMProcessingInstruction
*iface
,
411 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
412 TRACE("(%p)->(%p)\n", This
, p
);
413 return node_get_text(&This
->node
, p
);
416 static HRESULT WINAPI
dom_pi_put_text(
417 IXMLDOMProcessingInstruction
*iface
,
420 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
421 TRACE("(%p)->(%s)\n", This
, debugstr_w(p
));
422 return node_put_text( &This
->node
, p
);
425 static HRESULT WINAPI
dom_pi_get_specified(
426 IXMLDOMProcessingInstruction
*iface
,
427 VARIANT_BOOL
* isSpecified
)
429 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
430 FIXME("(%p)->(%p) stub!\n", This
, isSpecified
);
431 *isSpecified
= VARIANT_TRUE
;
435 static HRESULT WINAPI
dom_pi_get_definition(
436 IXMLDOMProcessingInstruction
*iface
,
437 IXMLDOMNode
** definitionNode
)
439 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
440 FIXME("(%p)->(%p)\n", This
, definitionNode
);
444 static HRESULT WINAPI
dom_pi_get_nodeTypedValue(
445 IXMLDOMProcessingInstruction
*iface
,
448 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
449 TRACE("(%p)->(%p)\n", This
, v
);
450 return node_get_content(&This
->node
, v
);
453 static HRESULT WINAPI
dom_pi_put_nodeTypedValue(
454 IXMLDOMProcessingInstruction
*iface
,
457 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
458 FIXME("(%p)->(%s)\n", This
, debugstr_variant(&typedValue
));
462 static HRESULT WINAPI
dom_pi_get_dataType(
463 IXMLDOMProcessingInstruction
*iface
,
466 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
467 TRACE("(%p)->(%p)\n", This
, typename
);
468 return return_null_var( typename
);
471 static HRESULT WINAPI
dom_pi_put_dataType(
472 IXMLDOMProcessingInstruction
*iface
,
475 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
477 TRACE("(%p)->(%s)\n", This
, debugstr_w(p
));
485 static HRESULT WINAPI
dom_pi_get_xml(
486 IXMLDOMProcessingInstruction
*iface
,
489 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
491 TRACE("(%p)->(%p)\n", This
, p
);
493 return node_get_xml(&This
->node
, FALSE
, p
);
496 static HRESULT WINAPI
dom_pi_transformNode(
497 IXMLDOMProcessingInstruction
*iface
,
498 IXMLDOMNode
*node
, BSTR
*p
)
500 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
501 TRACE("(%p)->(%p %p)\n", This
, node
, p
);
502 return node_transform_node(&This
->node
, node
, p
);
505 static HRESULT WINAPI
dom_pi_selectNodes(
506 IXMLDOMProcessingInstruction
*iface
,
507 BSTR p
, IXMLDOMNodeList
** outList
)
509 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
510 TRACE("(%p)->(%s %p)\n", This
, debugstr_w(p
), outList
);
511 return node_select_nodes(&This
->node
, p
, outList
);
514 static HRESULT WINAPI
dom_pi_selectSingleNode(
515 IXMLDOMProcessingInstruction
*iface
,
516 BSTR p
, IXMLDOMNode
** outNode
)
518 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
519 TRACE("(%p)->(%s %p)\n", This
, debugstr_w(p
), outNode
);
520 return node_select_singlenode(&This
->node
, p
, outNode
);
523 static HRESULT WINAPI
dom_pi_get_parsed(
524 IXMLDOMProcessingInstruction
*iface
,
525 VARIANT_BOOL
* isParsed
)
527 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
528 FIXME("(%p)->(%p) stub!\n", This
, isParsed
);
529 *isParsed
= VARIANT_TRUE
;
533 static HRESULT WINAPI
dom_pi_get_namespaceURI(
534 IXMLDOMProcessingInstruction
*iface
,
537 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
538 TRACE("(%p)->(%p)\n", This
, p
);
539 return node_get_namespaceURI(&This
->node
, p
);
542 static HRESULT WINAPI
dom_pi_get_prefix(
543 IXMLDOMProcessingInstruction
*iface
,
546 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
547 TRACE("(%p)->(%p)\n", This
, prefix
);
548 return return_null_bstr( prefix
);
551 static HRESULT WINAPI
dom_pi_get_baseName(
552 IXMLDOMProcessingInstruction
*iface
,
555 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
556 TRACE("(%p)->(%p)\n", This
, name
);
557 return node_get_base_name( &This
->node
, name
);
560 static HRESULT WINAPI
dom_pi_transformNodeToObject(
561 IXMLDOMProcessingInstruction
*iface
,
562 IXMLDOMNode
* domNode
, VARIANT var1
)
564 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
565 FIXME("(%p)->(%p %s)\n", This
, domNode
, debugstr_variant(&var1
));
569 static HRESULT WINAPI
dom_pi_get_target(
570 IXMLDOMProcessingInstruction
*iface
,
573 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
575 TRACE("(%p)->(%p)\n", This
, p
);
577 /* target returns the same value as nodeName property */
578 return node_get_nodeName(&This
->node
, p
);
581 static HRESULT WINAPI
dom_pi_get_data(
582 IXMLDOMProcessingInstruction
*iface
,
585 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
589 TRACE("(%p)->(%p)\n", This
, p
);
594 hr
= IXMLDOMProcessingInstruction_get_nodeValue( iface
, &ret
);
603 static HRESULT WINAPI
dom_pi_put_data(
604 IXMLDOMProcessingInstruction
*iface
,
607 dom_pi
*This
= impl_from_IXMLDOMProcessingInstruction( iface
);
611 TRACE("(%p)->(%s)\n", This
, debugstr_w(data
) );
613 /* cannot set data to a PI node whose target is 'xml' */
614 hr
= IXMLDOMProcessingInstruction_get_nodeName(iface
, &target
);
617 static const WCHAR xmlW
[] = {'x','m','l',0};
618 if(!strcmpW(target
, xmlW
))
620 SysFreeString(target
);
624 SysFreeString(target
);
627 return node_set_content(&This
->node
, data
);
630 static const struct IXMLDOMProcessingInstructionVtbl dom_pi_vtbl
=
632 dom_pi_QueryInterface
,
635 dom_pi_GetTypeInfoCount
,
637 dom_pi_GetIDsOfNames
,
640 dom_pi_get_nodeValue
,
641 dom_pi_put_nodeValue
,
643 dom_pi_get_parentNode
,
644 dom_pi_get_childNodes
,
645 dom_pi_get_firstChild
,
646 dom_pi_get_lastChild
,
647 dom_pi_get_previousSibling
,
648 dom_pi_get_nextSibling
,
649 dom_pi_get_attributes
,
654 dom_pi_hasChildNodes
,
655 dom_pi_get_ownerDocument
,
657 dom_pi_get_nodeTypeString
,
660 dom_pi_get_specified
,
661 dom_pi_get_definition
,
662 dom_pi_get_nodeTypedValue
,
663 dom_pi_put_nodeTypedValue
,
667 dom_pi_transformNode
,
669 dom_pi_selectSingleNode
,
671 dom_pi_get_namespaceURI
,
674 dom_pi_transformNodeToObject
,
681 static HRESULT
dom_pi_get_qualified_item(const xmlNodePtr node
, BSTR name
, BSTR uri
,
684 FIXME("(%p)->(%s %s %p): stub\n", node
, debugstr_w(name
), debugstr_w(uri
), item
);
688 static HRESULT
dom_pi_get_named_item(const xmlNodePtr node
, BSTR name
, IXMLDOMNode
**item
)
690 FIXME("(%p)->(%s %p): stub\n", node
, debugstr_w(name
), item
);
694 static HRESULT
dom_pi_set_named_item(xmlNodePtr node
, IXMLDOMNode
*newItem
, IXMLDOMNode
**namedItem
)
696 FIXME("(%p)->(%p %p): stub\n", node
, newItem
, namedItem
);
700 static HRESULT
dom_pi_remove_qualified_item(xmlNodePtr node
, BSTR name
, BSTR uri
, IXMLDOMNode
**item
)
702 FIXME("(%p)->(%s %s %p): stub\n", node
, debugstr_w(name
), debugstr_w(uri
), item
);
706 static HRESULT
dom_pi_remove_named_item(xmlNodePtr node
, BSTR name
, IXMLDOMNode
**item
)
708 FIXME("(%p)->(%s %p): stub\n", node
, debugstr_w(name
), item
);
712 static HRESULT
dom_pi_get_item(const xmlNodePtr node
, LONG index
, IXMLDOMNode
**item
)
714 FIXME("(%p)->(%d %p): stub\n", node
, index
, item
);
718 static HRESULT
dom_pi_get_length(const xmlNodePtr node
, LONG
*length
)
720 FIXME("(%p)->(%p): stub\n", node
, length
);
726 static HRESULT
dom_pi_next_node(const xmlNodePtr node
, LONG
*iter
, IXMLDOMNode
**nextNode
)
728 FIXME("(%p)->(%d %p): stub\n", node
, *iter
, nextNode
);
732 static const struct nodemap_funcs dom_pi_attr_map
= {
733 dom_pi_get_named_item
,
734 dom_pi_set_named_item
,
735 dom_pi_remove_named_item
,
738 dom_pi_get_qualified_item
,
739 dom_pi_remove_qualified_item
,
743 static const tid_t dompi_iface_tids
[] = {
744 IXMLDOMProcessingInstruction_tid
,
748 static dispex_static_data_t dompi_dispex
= {
750 IXMLDOMProcessingInstruction_tid
,
755 IUnknown
* create_pi( xmlNodePtr pi
)
759 This
= heap_alloc( sizeof *This
);
763 This
->IXMLDOMProcessingInstruction_iface
.lpVtbl
= &dom_pi_vtbl
;
766 init_xmlnode(&This
->node
, pi
, (IXMLDOMNode
*)&This
->IXMLDOMProcessingInstruction_iface
, &dompi_dispex
);
768 return (IUnknown
*)&This
->IXMLDOMProcessingInstruction_iface
;