2 * DOM CDATA node implementation
4 * Copyright 2007 Alistair Leslie-Hughes
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
32 #include "msxml_private.h"
34 #include "wine/debug.h"
36 WINE_DEFAULT_DEBUG_CHANNEL(msxml);
40 typedef struct _domcdata
43 IXMLDOMCDATASection IXMLDOMCDATASection_iface;
47 static inline domcdata *impl_from_IXMLDOMCDATASection( IXMLDOMCDATASection *iface )
49 return CONTAINING_RECORD(iface, domcdata, IXMLDOMCDATASection_iface);
52 static HRESULT WINAPI domcdata_QueryInterface(
53 IXMLDOMCDATASection *iface,
57 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
58 TRACE("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppvObject);
60 if ( IsEqualGUID( riid, &IID_IXMLDOMCDATASection ) ||
61 IsEqualGUID( riid, &IID_IXMLDOMCharacterData) ||
62 IsEqualGUID( riid, &IID_IXMLDOMNode ) ||
63 IsEqualGUID( riid, &IID_IDispatch ) ||
64 IsEqualGUID( riid, &IID_IUnknown ) )
68 else if ( IsEqualGUID( riid, &IID_IXMLDOMText ) ||
69 IsEqualGUID( riid, &IID_IXMLDOMElement ) )
71 TRACE("Unsupported interface\n");
74 else if(node_query_interface(&This->node, riid, ppvObject))
76 return *ppvObject ? S_OK : E_NOINTERFACE;
80 FIXME("Unsupported interface %s\n", debugstr_guid(riid));
84 IXMLDOMText_AddRef((IUnknown*)*ppvObject);
88 static ULONG WINAPI domcdata_AddRef(
89 IXMLDOMCDATASection *iface )
91 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
92 return InterlockedIncrement( &This->ref );
95 static ULONG WINAPI domcdata_Release(
96 IXMLDOMCDATASection *iface )
98 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
101 ref = InterlockedDecrement( &This->ref );
104 destroy_xmlnode(&This->node);
111 static HRESULT WINAPI domcdata_GetTypeInfoCount(
112 IXMLDOMCDATASection *iface,
115 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
117 TRACE("(%p)->(%p)\n", This, pctinfo);
124 static HRESULT WINAPI domcdata_GetTypeInfo(
125 IXMLDOMCDATASection *iface,
126 UINT iTInfo, LCID lcid,
127 ITypeInfo** ppTInfo )
129 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
132 TRACE("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
134 hr = get_typeinfo(IXMLDOMCDATASection_tid, ppTInfo);
139 static HRESULT WINAPI domcdata_GetIDsOfNames(
140 IXMLDOMCDATASection *iface,
141 REFIID riid, LPOLESTR* rgszNames,
142 UINT cNames, LCID lcid, DISPID* rgDispId )
144 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
148 TRACE("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
151 if(!rgszNames || cNames == 0 || !rgDispId)
154 hr = get_typeinfo(IXMLDOMCDATASection_tid, &typeinfo);
157 hr = ITypeInfo_GetIDsOfNames(typeinfo, rgszNames, cNames, rgDispId);
158 ITypeInfo_Release(typeinfo);
164 static HRESULT WINAPI domcdata_Invoke(
165 IXMLDOMCDATASection *iface,
166 DISPID dispIdMember, REFIID riid, LCID lcid,
167 WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarResult,
168 EXCEPINFO* pExcepInfo, UINT* puArgErr )
170 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
174 TRACE("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
175 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
177 hr = get_typeinfo(IXMLDOMCDATASection_tid, &typeinfo);
180 hr = ITypeInfo_Invoke(typeinfo, &This->IXMLDOMCDATASection_iface, dispIdMember, wFlags,
181 pDispParams, pVarResult, pExcepInfo, puArgErr);
182 ITypeInfo_Release(typeinfo);
188 static HRESULT WINAPI domcdata_get_nodeName(
189 IXMLDOMCDATASection *iface,
192 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
194 static const WCHAR cdata_sectionW[] =
195 {'#','c','d','a','t','a','-','s','e','c','t','i','o','n',0};
197 TRACE("(%p)->(%p)\n", This, p);
199 return return_bstr(cdata_sectionW, p);
202 static HRESULT WINAPI domcdata_get_nodeValue(
203 IXMLDOMCDATASection *iface,
206 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
208 TRACE("(%p)->(%p)\n", This, value);
210 return node_get_content(&This->node, value);
213 static HRESULT WINAPI domcdata_put_nodeValue(
214 IXMLDOMCDATASection *iface,
217 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
219 TRACE("(%p)->(%s)\n", This, debugstr_variant(&value));
221 return node_put_value(&This->node, &value);
224 static HRESULT WINAPI domcdata_get_nodeType(
225 IXMLDOMCDATASection *iface,
226 DOMNodeType* domNodeType )
228 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
230 TRACE("(%p)->(%p)\n", This, domNodeType);
232 *domNodeType = NODE_CDATA_SECTION;
236 static HRESULT WINAPI domcdata_get_parentNode(
237 IXMLDOMCDATASection *iface,
238 IXMLDOMNode** parent )
240 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
242 TRACE("(%p)->(%p)\n", This, parent);
244 return node_get_parent(&This->node, parent);
247 static HRESULT WINAPI domcdata_get_childNodes(
248 IXMLDOMCDATASection *iface,
249 IXMLDOMNodeList** outList)
251 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
253 TRACE("(%p)->(%p)\n", This, outList);
255 return node_get_child_nodes(&This->node, outList);
258 static HRESULT WINAPI domcdata_get_firstChild(
259 IXMLDOMCDATASection *iface,
260 IXMLDOMNode** domNode)
262 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
264 TRACE("(%p)->(%p)\n", This, domNode);
266 return return_null_node(domNode);
269 static HRESULT WINAPI domcdata_get_lastChild(
270 IXMLDOMCDATASection *iface,
271 IXMLDOMNode** domNode)
273 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
275 TRACE("(%p)->(%p)\n", This, domNode);
277 return return_null_node(domNode);
280 static HRESULT WINAPI domcdata_get_previousSibling(
281 IXMLDOMCDATASection *iface,
282 IXMLDOMNode** domNode)
284 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
286 TRACE("(%p)->(%p)\n", This, domNode);
288 return node_get_previous_sibling(&This->node, domNode);
291 static HRESULT WINAPI domcdata_get_nextSibling(
292 IXMLDOMCDATASection *iface,
293 IXMLDOMNode** domNode)
295 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
297 TRACE("(%p)->(%p)\n", This, domNode);
299 return node_get_next_sibling(&This->node, domNode);
302 static HRESULT WINAPI domcdata_get_attributes(
303 IXMLDOMCDATASection *iface,
304 IXMLDOMNamedNodeMap** attributeMap)
306 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
308 TRACE("(%p)->(%p)\n", This, attributeMap);
310 return return_null_ptr((void**)attributeMap);
313 static HRESULT WINAPI domcdata_insertBefore(
314 IXMLDOMCDATASection *iface,
315 IXMLDOMNode* newNode, VARIANT refChild,
316 IXMLDOMNode** outOldNode)
318 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
320 FIXME("(%p)->(%p %s %p) needs test\n", This, newNode, debugstr_variant(&refChild), outOldNode);
322 return node_insert_before(&This->node, newNode, &refChild, outOldNode);
325 static HRESULT WINAPI domcdata_replaceChild(
326 IXMLDOMCDATASection *iface,
327 IXMLDOMNode* newNode,
328 IXMLDOMNode* oldNode,
329 IXMLDOMNode** outOldNode)
331 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
333 FIXME("(%p)->(%p %p %p) needs tests\n", This, newNode, oldNode, outOldNode);
335 return node_replace_child(&This->node, newNode, oldNode, outOldNode);
338 static HRESULT WINAPI domcdata_removeChild(
339 IXMLDOMCDATASection *iface,
340 IXMLDOMNode *child, IXMLDOMNode **oldChild)
342 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
343 TRACE("(%p)->(%p %p)\n", This, child, oldChild);
344 return node_remove_child(&This->node, child, oldChild);
347 static HRESULT WINAPI domcdata_appendChild(
348 IXMLDOMCDATASection *iface,
349 IXMLDOMNode *child, IXMLDOMNode **outChild)
351 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
352 TRACE("(%p)->(%p %p)\n", This, child, outChild);
353 return node_append_child(&This->node, child, outChild);
356 static HRESULT WINAPI domcdata_hasChildNodes(
357 IXMLDOMCDATASection *iface,
360 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
361 TRACE("(%p)->(%p)\n", This, ret);
362 return node_has_childnodes(&This->node, ret);
365 static HRESULT WINAPI domcdata_get_ownerDocument(
366 IXMLDOMCDATASection *iface,
367 IXMLDOMDocument** domDocument)
369 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
370 return IXMLDOMNode_get_ownerDocument( &This->node.IXMLDOMNode_iface, domDocument );
373 static HRESULT WINAPI domcdata_cloneNode(
374 IXMLDOMCDATASection *iface,
375 VARIANT_BOOL deep, IXMLDOMNode** outNode)
377 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
378 TRACE("(%p)->(%d %p)\n", This, deep, outNode);
379 return node_clone( &This->node, deep, outNode );
382 static HRESULT WINAPI domcdata_get_nodeTypeString(
383 IXMLDOMCDATASection *iface,
386 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
387 static const WCHAR cdatasectionW[] = {'c','d','a','t','a','s','e','c','t','i','o','n',0};
389 TRACE("(%p)->(%p)\n", This, p);
391 return return_bstr(cdatasectionW, p);
394 static HRESULT WINAPI domcdata_get_text(
395 IXMLDOMCDATASection *iface,
398 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
399 return IXMLDOMNode_get_text( &This->node.IXMLDOMNode_iface, p );
402 static HRESULT WINAPI domcdata_put_text(
403 IXMLDOMCDATASection *iface,
406 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
407 TRACE("(%p)->(%p)\n", This, debugstr_w(p));
408 return node_put_text( &This->node, p );
411 static HRESULT WINAPI domcdata_get_specified(
412 IXMLDOMCDATASection *iface,
413 VARIANT_BOOL* isSpecified)
415 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
416 FIXME("(%p)->(%p) stub!\n", This, isSpecified);
417 *isSpecified = VARIANT_TRUE;
421 static HRESULT WINAPI domcdata_get_definition(
422 IXMLDOMCDATASection *iface,
423 IXMLDOMNode** definitionNode)
425 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
426 FIXME("(%p)->(%p)\n", This, definitionNode);
430 static HRESULT WINAPI domcdata_get_nodeTypedValue(
431 IXMLDOMCDATASection *iface,
434 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
435 FIXME("(%p)->(%p)\n", This, var1);
436 return return_null_var(var1);
439 static HRESULT WINAPI domcdata_put_nodeTypedValue(
440 IXMLDOMCDATASection *iface,
443 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
444 FIXME("(%p)->(%s)\n", This, debugstr_variant(&typedValue));
448 static HRESULT WINAPI domcdata_get_dataType(
449 IXMLDOMCDATASection *iface,
452 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
453 TRACE("(%p)->(%p)\n", This, typename);
454 return return_null_var( typename );
457 static HRESULT WINAPI domcdata_put_dataType(
458 IXMLDOMCDATASection *iface,
461 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
463 FIXME("(%p)->(%s)\n", This, debugstr_w(p));
471 static HRESULT WINAPI domcdata_get_xml(
472 IXMLDOMCDATASection *iface,
475 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
477 TRACE("(%p)->(%p)\n", This, p);
479 return node_get_xml(&This->node, FALSE, FALSE, p);
482 static HRESULT WINAPI domcdata_transformNode(
483 IXMLDOMCDATASection *iface,
484 IXMLDOMNode* domNode, BSTR* p)
486 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
487 return IXMLDOMNode_transformNode( &This->node.IXMLDOMNode_iface, domNode, p );
490 static HRESULT WINAPI domcdata_selectNodes(
491 IXMLDOMCDATASection *iface,
492 BSTR p, IXMLDOMNodeList** outList)
494 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
495 return IXMLDOMNode_selectNodes( &This->node.IXMLDOMNode_iface, p, outList );
498 static HRESULT WINAPI domcdata_selectSingleNode(
499 IXMLDOMCDATASection *iface,
500 BSTR p, IXMLDOMNode** outNode)
502 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
503 return IXMLDOMNode_selectSingleNode( &This->node.IXMLDOMNode_iface, p, outNode );
506 static HRESULT WINAPI domcdata_get_parsed(
507 IXMLDOMCDATASection *iface,
508 VARIANT_BOOL* isParsed)
510 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
511 FIXME("(%p)->(%p) stub!\n", This, isParsed);
512 *isParsed = VARIANT_TRUE;
516 static HRESULT WINAPI domcdata_get_namespaceURI(
517 IXMLDOMCDATASection *iface,
520 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
521 TRACE("(%p)->(%p)\n", This, p);
522 return node_get_namespaceURI(&This->node, p);
525 static HRESULT WINAPI domcdata_get_prefix(
526 IXMLDOMCDATASection *iface,
529 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
530 TRACE("(%p)->(%p)\n", This, prefix);
531 return return_null_bstr( prefix );
534 static HRESULT WINAPI domcdata_get_baseName(
535 IXMLDOMCDATASection *iface,
538 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
539 FIXME("(%p)->(%p): needs test\n", This, name);
540 return return_null_bstr( name );
543 static HRESULT WINAPI domcdata_transformNodeToObject(
544 IXMLDOMCDATASection *iface,
545 IXMLDOMNode* domNode, VARIANT var1)
547 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
548 FIXME("(%p)->(%p %s)\n", This, domNode, debugstr_variant(&var1));
552 static HRESULT WINAPI domcdata_get_data(
553 IXMLDOMCDATASection *iface,
562 hr = IXMLDOMCDATASection_get_nodeValue( iface, &vRet );
571 static HRESULT WINAPI domcdata_put_data(
572 IXMLDOMCDATASection *iface,
575 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
578 TRACE("(%p)->(%s)\n", This, debugstr_w(data) );
580 V_VT(&val) = VT_BSTR;
583 return IXMLDOMCDATASection_put_nodeValue( iface, val );
586 static HRESULT WINAPI domcdata_get_length(
587 IXMLDOMCDATASection *iface,
590 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
594 TRACE("(%p)->(%p)\n", This, len);
599 hr = IXMLDOMCDATASection_get_data(iface, &data);
602 *len = SysStringLen(data);
609 static HRESULT WINAPI domcdata_substringData(
610 IXMLDOMCDATASection *iface,
611 LONG offset, LONG count, BSTR *p)
613 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
617 TRACE("(%p)->(%d %d %p)\n", This, offset, count, p);
623 if(offset < 0 || count < 0)
629 hr = IXMLDOMCDATASection_get_data(iface, &data);
632 LONG len = SysStringLen(data);
636 if(offset + count > len)
637 *p = SysAllocString(&data[offset]);
639 *p = SysAllocStringLen(&data[offset], count);
650 static HRESULT WINAPI domcdata_appendData(
651 IXMLDOMCDATASection *iface,
654 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
659 TRACE("(%p)->(%s)\n", This, debugstr_w(p));
661 /* Nothing to do if NULL or an Empty string passed in. */
662 if((p_len = SysStringLen(p)) == 0) return S_OK;
664 hr = IXMLDOMCDATASection_get_data(iface, &data);
667 LONG len = SysStringLen(data);
668 BSTR str = SysAllocStringLen(NULL, p_len + len);
670 memcpy(str, data, len*sizeof(WCHAR));
671 memcpy(&str[len], p, p_len*sizeof(WCHAR));
674 hr = IXMLDOMCDATASection_put_data(iface, str);
683 static HRESULT WINAPI domcdata_insertData(
684 IXMLDOMCDATASection *iface,
687 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
692 TRACE("(%p)->(%d %s)\n", This, offset, debugstr_w(p));
694 /* If have a NULL or empty string, don't do anything. */
695 if((p_len = SysStringLen(p)) == 0)
703 hr = IXMLDOMCDATASection_get_data(iface, &data);
706 LONG len = SysStringLen(data);
715 str = SysAllocStringLen(NULL, len + p_len);
716 /* start part, supplied string and end part */
717 memcpy(str, data, offset*sizeof(WCHAR));
718 memcpy(&str[offset], p, p_len*sizeof(WCHAR));
719 memcpy(&str[offset+p_len], &data[offset], (len-offset)*sizeof(WCHAR));
722 hr = IXMLDOMCDATASection_put_data(iface, str);
731 static HRESULT WINAPI domcdata_deleteData(
732 IXMLDOMCDATASection *iface,
733 LONG offset, LONG count)
735 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
740 TRACE("(%p)->(%d %d)\n", This, offset, count);
742 hr = IXMLDOMCDATASection_get_length(iface, &len);
743 if(hr != S_OK) return hr;
745 if((offset < 0) || (offset > len) || (count < 0))
748 if(len == 0) return S_OK;
750 /* cutting start or end */
751 if((offset == 0) || ((count + offset) >= len))
754 IXMLDOMCDATASection_substringData(iface, count, len - count, &str);
756 IXMLDOMCDATASection_substringData(iface, 0, offset, &str);
757 hr = IXMLDOMCDATASection_put_data(iface, str);
760 /* cutting from the inside */
764 IXMLDOMCDATASection_substringData(iface, 0, offset, &str);
765 IXMLDOMCDATASection_substringData(iface, offset + count, len - count, &str_end);
767 hr = IXMLDOMCDATASection_put_data(iface, str);
769 hr = IXMLDOMCDATASection_appendData(iface, str_end);
771 SysFreeString(str_end);
779 static HRESULT WINAPI domcdata_replaceData(
780 IXMLDOMCDATASection *iface,
781 LONG offset, LONG count, BSTR p)
783 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
786 TRACE("(%p)->(%d %d %s)\n", This, offset, count, debugstr_w(p));
788 hr = IXMLDOMCDATASection_deleteData(iface, offset, count);
791 hr = IXMLDOMCDATASection_insertData(iface, offset, p);
796 static HRESULT WINAPI domcdata_splitText(
797 IXMLDOMCDATASection *iface,
798 LONG offset, IXMLDOMText **txtNode)
800 domcdata *This = impl_from_IXMLDOMCDATASection( iface );
801 IXMLDOMDocument *doc;
805 TRACE("(%p)->(%d %p)\n", This, offset, txtNode);
807 if (!txtNode || offset < 0) return E_INVALIDARG;
811 IXMLDOMCDATASection_get_length(iface, &length);
813 if (offset > length) return E_INVALIDARG;
814 if (offset == length) return S_FALSE;
816 hr = IXMLDOMCDATASection_get_ownerDocument(iface, &doc);
821 hr = IXMLDOMCDATASection_substringData(iface, offset, length - offset, &data);
824 hr = IXMLDOMDocument_createTextNode(doc, data, txtNode);
829 hr = IXMLDOMCDATASection_get_parentNode(iface, &parent);
832 IXMLDOMCDATASection_deleteData(iface, 0, offset);
833 hr = IXMLDOMNode_appendChild(parent, (IXMLDOMNode*)*txtNode, NULL);
834 IXMLDOMNode_Release(parent);
839 IXMLDOMDocument_Release(doc);
845 static const struct IXMLDOMCDATASectionVtbl domcdata_vtbl =
847 domcdata_QueryInterface,
850 domcdata_GetTypeInfoCount,
851 domcdata_GetTypeInfo,
852 domcdata_GetIDsOfNames,
854 domcdata_get_nodeName,
855 domcdata_get_nodeValue,
856 domcdata_put_nodeValue,
857 domcdata_get_nodeType,
858 domcdata_get_parentNode,
859 domcdata_get_childNodes,
860 domcdata_get_firstChild,
861 domcdata_get_lastChild,
862 domcdata_get_previousSibling,
863 domcdata_get_nextSibling,
864 domcdata_get_attributes,
865 domcdata_insertBefore,
866 domcdata_replaceChild,
867 domcdata_removeChild,
868 domcdata_appendChild,
869 domcdata_hasChildNodes,
870 domcdata_get_ownerDocument,
872 domcdata_get_nodeTypeString,
875 domcdata_get_specified,
876 domcdata_get_definition,
877 domcdata_get_nodeTypedValue,
878 domcdata_put_nodeTypedValue,
879 domcdata_get_dataType,
880 domcdata_put_dataType,
882 domcdata_transformNode,
883 domcdata_selectNodes,
884 domcdata_selectSingleNode,
886 domcdata_get_namespaceURI,
888 domcdata_get_baseName,
889 domcdata_transformNodeToObject,
893 domcdata_substringData,
897 domcdata_replaceData,
901 IUnknown* create_cdata( xmlNodePtr text )
905 This = heap_alloc( sizeof *This );
909 This->IXMLDOMCDATASection_iface.lpVtbl = &domcdata_vtbl;
912 init_xmlnode(&This->node, text, (IXMLDOMNode*)&This->IXMLDOMCDATASection_iface, NULL);
914 return (IUnknown*)&This->IXMLDOMCDATASection_iface;