mshtml: Wine Gecko 1.7 release.
[wine/multimedia.git] / dlls / msxml3 / msxml_private.h
blob8468e5551dc4835fd7b2913b59cb9901c29ecc42
1 /*
2 * Common definitions
4 * Copyright 2005 Mike McCormack
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 #ifndef __MSXML_PRIVATE__
22 #define __MSXML_PRIVATE__
24 #include "dispex.h"
26 #include "wine/unicode.h"
28 #ifndef __WINE_CONFIG_H
29 # error You must include config.h to use this header
30 #endif
32 typedef enum {
33 MSXML_DEFAULT = 0,
34 MSXML2 = 20,
35 MSXML26 = 26,
36 MSXML3 = 30,
37 MSXML4 = 40,
38 MSXML6 = 60
39 } MSXML_VERSION;
41 /* typelibs */
42 typedef enum tid_t {
43 NULL_tid,
44 IXMLDOMAttribute_tid,
45 IXMLDOMCDATASection_tid,
46 IXMLDOMComment_tid,
47 IXMLDOMDocument_tid,
48 IXMLDOMDocument2_tid,
49 IXMLDOMDocument3_tid,
50 IXMLDOMDocumentFragment_tid,
51 IXMLDOMDocumentType_tid,
52 IXMLDOMElement_tid,
53 IXMLDOMEntityReference_tid,
54 IXMLDOMImplementation_tid,
55 IXMLDOMNamedNodeMap_tid,
56 IXMLDOMNode_tid,
57 IXMLDOMNodeList_tid,
58 IXMLDOMParseError2_tid,
59 IXMLDOMProcessingInstruction_tid,
60 IXMLDOMSchemaCollection_tid,
61 IXMLDOMSchemaCollection2_tid,
62 IXMLDOMSelection_tid,
63 IXMLDOMText_tid,
64 IXMLElement_tid,
65 IXMLDocument_tid,
66 IXMLHTTPRequest_tid,
67 IXSLProcessor_tid,
68 IXSLTemplate_tid,
69 IVBSAXAttributes_tid,
70 IVBSAXContentHandler_tid,
71 IVBSAXDeclHandler_tid,
72 IVBSAXDTDHandler_tid,
73 IVBSAXEntityResolver_tid,
74 IVBSAXErrorHandler_tid,
75 IVBSAXLexicalHandler_tid,
76 IVBSAXLocator_tid,
77 IVBSAXXMLFilter_tid,
78 IVBSAXXMLReader_tid,
79 IMXAttributes_tid,
80 IMXReaderControl_tid,
81 IMXWriter_tid,
82 IVBMXNamespaceManager_tid,
83 IServerXMLHTTPRequest_tid,
84 LAST_tid
85 } tid_t;
87 /* The XDR datatypes (urn:schemas-microsoft-com:datatypes)
88 * These are actually valid for XSD schemas as well
89 * See datatypes.xsd
91 typedef enum _XDR_DT {
92 DT_INVALID = -1,
93 DT_BIN_BASE64,
94 DT_BIN_HEX,
95 DT_BOOLEAN,
96 DT_CHAR,
97 DT_DATE,
98 DT_DATE_TZ,
99 DT_DATETIME,
100 DT_DATETIME_TZ,
101 DT_ENTITY,
102 DT_ENTITIES,
103 DT_ENUMERATION,
104 DT_FIXED_14_4,
105 DT_FLOAT,
106 DT_I1,
107 DT_I2,
108 DT_I4,
109 DT_I8,
110 DT_ID,
111 DT_IDREF,
112 DT_IDREFS,
113 DT_INT,
114 DT_NMTOKEN,
115 DT_NMTOKENS,
116 DT_NOTATION,
117 DT_NUMBER,
118 DT_R4,
119 DT_R8,
120 DT_STRING,
121 DT_TIME,
122 DT_TIME_TZ,
123 DT_UI1,
124 DT_UI2,
125 DT_UI4,
126 DT_UI8,
127 DT_URI,
128 DT_UUID,
129 LAST_DT
130 } XDR_DT;
132 extern HRESULT get_typeinfo(tid_t tid, ITypeInfo **typeinfo) DECLSPEC_HIDDEN;
133 extern void release_typelib(void) DECLSPEC_HIDDEN;
135 typedef struct dispex_data_t dispex_data_t;
136 typedef struct dispex_dynamic_data_t dispex_dynamic_data_t;
138 typedef struct {
139 HRESULT (*get_dispid)(IUnknown*,BSTR,DWORD,DISPID*);
140 HRESULT (*invoke)(IUnknown*,DISPID,LCID,WORD,DISPPARAMS*,VARIANT*,EXCEPINFO*);
141 } dispex_static_data_vtbl_t;
143 typedef struct {
144 const dispex_static_data_vtbl_t *vtbl;
145 const tid_t disp_tid;
146 dispex_data_t *data;
147 const tid_t* const iface_tids;
148 } dispex_static_data_t;
150 typedef struct {
151 IDispatchEx IDispatchEx_iface;
153 IUnknown *outer;
155 dispex_static_data_t *data;
156 dispex_dynamic_data_t *dynamic_data;
157 } DispatchEx;
159 extern HINSTANCE MSXML_hInstance DECLSPEC_HIDDEN;
161 void init_dispex(DispatchEx*,IUnknown*,dispex_static_data_t*) DECLSPEC_HIDDEN;
162 void release_dispex(DispatchEx*) DECLSPEC_HIDDEN;
163 BOOL dispex_query_interface(DispatchEx*,REFIID,void**) DECLSPEC_HIDDEN;
164 const IID *get_riid_from_tid(enum tid_t tid) DECLSPEC_HIDDEN;
166 /* memory allocation functions */
168 static inline void *heap_alloc(size_t len)
170 return HeapAlloc(GetProcessHeap(), 0, len);
173 static inline void *heap_alloc_zero(size_t len)
175 return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, len);
178 static inline void *heap_realloc(void *mem, size_t len)
180 return HeapReAlloc(GetProcessHeap(), 0, mem, len);
183 static inline BOOL heap_free(void *mem)
185 return HeapFree(GetProcessHeap(), 0, mem);
188 static inline LPWSTR heap_strdupW(LPCWSTR str)
190 LPWSTR ret = NULL;
192 if(str) {
193 DWORD size;
195 size = (strlenW(str)+1)*sizeof(WCHAR);
196 ret = heap_alloc(size);
197 memcpy(ret, str, size);
200 return ret;
203 static inline LPSTR heap_strdupWtoA(LPCWSTR str)
205 LPSTR ret = NULL;
207 if(str) {
208 DWORD len = WideCharToMultiByte(CP_ACP, 0, str, -1, NULL, 0, NULL, NULL);
209 ret = heap_alloc(len+1);
210 if(!ret)
211 return NULL;
213 WideCharToMultiByte(CP_ACP, 0, str, -1, ret, len+1, NULL, NULL);
216 return ret;
219 #ifdef HAVE_LIBXML2
221 extern void schemasInit(void) DECLSPEC_HIDDEN;
222 extern void schemasCleanup(void) DECLSPEC_HIDDEN;
224 #ifndef HAVE_XMLFIRSTELEMENTCHILD
225 static inline xmlNodePtr wine_xmlFirstElementChild(xmlNodePtr parent)
227 xmlNodePtr child;
228 for (child = parent->children; child != NULL; child = child->next)
229 if (child->type == XML_ELEMENT_NODE)
230 break;
232 return child;
234 #define xmlFirstElementChild wine_xmlFirstElementChild
235 #endif
237 /* IXMLDOMNode Internal Structure */
238 typedef struct _xmlnode
240 DispatchEx dispex;
241 IXMLDOMNode *iface;
242 IXMLDOMNode *parent;
243 xmlNodePtr node;
244 } xmlnode;
246 /* IXMLDOMNamedNodeMap custom function table */
247 struct nodemap_funcs
249 HRESULT (*get_named_item)(const xmlNodePtr,BSTR,IXMLDOMNode**);
250 HRESULT (*set_named_item)(xmlNodePtr,IXMLDOMNode*,IXMLDOMNode**);
251 HRESULT (*remove_named_item)(xmlNodePtr,BSTR,IXMLDOMNode**);
252 HRESULT (*get_item)(xmlNodePtr,LONG,IXMLDOMNode**);
253 HRESULT (*get_length)(xmlNodePtr,LONG*);
254 HRESULT (*get_qualified_item)(const xmlNodePtr,BSTR,BSTR,IXMLDOMNode**);
255 HRESULT (*remove_qualified_item)(xmlNodePtr,BSTR,BSTR,IXMLDOMNode**);
256 HRESULT (*next_node)(const xmlNodePtr,LONG*,IXMLDOMNode**);
259 /* used by IEnumVARIANT to access outer object items */
260 struct enumvariant_funcs
262 HRESULT (*get_item)(IUnknown*, LONG, VARIANT*);
263 HRESULT (*next)(IUnknown*);
266 /* constructors */
267 extern IUnknown *create_domdoc( xmlNodePtr ) DECLSPEC_HIDDEN;
268 extern IUnknown *create_xmldoc( void ) DECLSPEC_HIDDEN;
269 extern IXMLDOMNode *create_node( xmlNodePtr ) DECLSPEC_HIDDEN;
270 extern IUnknown *create_element( xmlNodePtr ) DECLSPEC_HIDDEN;
271 extern IUnknown *create_attribute( xmlNodePtr ) DECLSPEC_HIDDEN;
272 extern IUnknown *create_text( xmlNodePtr ) DECLSPEC_HIDDEN;
273 extern IUnknown *create_pi( xmlNodePtr ) DECLSPEC_HIDDEN;
274 extern IUnknown *create_comment( xmlNodePtr ) DECLSPEC_HIDDEN;
275 extern IUnknown *create_cdata( xmlNodePtr ) DECLSPEC_HIDDEN;
276 extern IXMLDOMNodeList *create_children_nodelist( xmlNodePtr ) DECLSPEC_HIDDEN;
277 extern IXMLDOMNamedNodeMap *create_nodemap( xmlNodePtr, const struct nodemap_funcs* ) DECLSPEC_HIDDEN;
278 extern IUnknown *create_doc_Implementation(void) DECLSPEC_HIDDEN;
279 extern IUnknown *create_doc_fragment( xmlNodePtr ) DECLSPEC_HIDDEN;
280 extern IUnknown *create_doc_entity_ref( xmlNodePtr ) DECLSPEC_HIDDEN;
281 extern IUnknown *create_doc_type( xmlNodePtr ) DECLSPEC_HIDDEN;
282 extern HRESULT create_selection( xmlNodePtr, xmlChar*, IXMLDOMNodeList** ) DECLSPEC_HIDDEN;
283 extern HRESULT create_enumvariant( IUnknown*, BOOL, const struct enumvariant_funcs*, IEnumVARIANT**) DECLSPEC_HIDDEN;
285 /* data accessors */
286 xmlNodePtr xmlNodePtr_from_domnode( IXMLDOMNode *iface, xmlElementType type ) DECLSPEC_HIDDEN;
288 /* helpers */
289 extern xmlChar *xmlChar_from_wchar( LPCWSTR str ) DECLSPEC_HIDDEN;
291 extern void xmldoc_init( xmlDocPtr doc, MSXML_VERSION version ) DECLSPEC_HIDDEN;
292 extern LONG xmldoc_add_ref( xmlDocPtr doc ) DECLSPEC_HIDDEN;
293 extern LONG xmldoc_release( xmlDocPtr doc ) DECLSPEC_HIDDEN;
294 extern HRESULT xmldoc_add_orphan( xmlDocPtr doc, xmlNodePtr node ) DECLSPEC_HIDDEN;
295 extern HRESULT xmldoc_remove_orphan( xmlDocPtr doc, xmlNodePtr node ) DECLSPEC_HIDDEN;
296 extern void xmldoc_link_xmldecl(xmlDocPtr doc, xmlNodePtr node) DECLSPEC_HIDDEN;
297 extern xmlNodePtr xmldoc_unlink_xmldecl(xmlDocPtr doc) DECLSPEC_HIDDEN;
299 extern HRESULT XMLElement_create( IUnknown *pUnkOuter, xmlNodePtr node, LPVOID *ppObj, BOOL own ) DECLSPEC_HIDDEN;
301 extern void wineXmlCallbackLog(char const* caller, xmlErrorLevel lvl, char const* msg, va_list ap) DECLSPEC_HIDDEN;
302 extern void wineXmlCallbackError(char const* caller, xmlErrorPtr err) DECLSPEC_HIDDEN;
304 #define LIBXML2_LOG_CALLBACK __WINE_PRINTF_ATTR(2,3)
306 #define LIBXML2_CALLBACK_TRACE(caller, msg, ap) \
307 wineXmlCallbackLog(#caller, XML_ERR_NONE, msg, ap)
309 #define LIBXML2_CALLBACK_WARN(caller, msg, ap) \
310 wineXmlCallbackLog(#caller, XML_ERR_WARNING, msg, ap)
312 #define LIBXML2_CALLBACK_ERR(caller, msg, ap) \
313 wineXmlCallbackLog(#caller, XML_ERR_ERROR, msg, ap)
315 #define LIBXML2_CALLBACK_SERROR(caller, err) wineXmlCallbackError(#caller, err)
317 extern BOOL is_preserving_whitespace(xmlNodePtr node) DECLSPEC_HIDDEN;
318 extern BOOL is_xpathmode(const xmlDocPtr doc) DECLSPEC_HIDDEN;
319 extern void set_xpathmode(xmlDocPtr doc, BOOL xpath) DECLSPEC_HIDDEN;
321 extern void init_xmlnode(xmlnode*,xmlNodePtr,IXMLDOMNode*,dispex_static_data_t*) DECLSPEC_HIDDEN;
322 extern void destroy_xmlnode(xmlnode*) DECLSPEC_HIDDEN;
323 extern BOOL node_query_interface(xmlnode*,REFIID,void**) DECLSPEC_HIDDEN;
324 extern xmlnode *get_node_obj(IXMLDOMNode*) DECLSPEC_HIDDEN;
326 extern HRESULT node_append_child(xmlnode*,IXMLDOMNode*,IXMLDOMNode**) DECLSPEC_HIDDEN;
327 extern HRESULT node_get_nodeName(xmlnode*,BSTR*) DECLSPEC_HIDDEN;
328 extern HRESULT node_get_content(xmlnode*,VARIANT*) DECLSPEC_HIDDEN;
329 extern HRESULT node_set_content(xmlnode*,LPCWSTR) DECLSPEC_HIDDEN;
330 extern HRESULT node_put_value(xmlnode*,VARIANT*) DECLSPEC_HIDDEN;
331 extern HRESULT node_put_value_escaped(xmlnode*,VARIANT*) DECLSPEC_HIDDEN;
332 extern HRESULT node_get_parent(xmlnode*,IXMLDOMNode**) DECLSPEC_HIDDEN;
333 extern HRESULT node_get_child_nodes(xmlnode*,IXMLDOMNodeList**) DECLSPEC_HIDDEN;
334 extern HRESULT node_get_first_child(xmlnode*,IXMLDOMNode**) DECLSPEC_HIDDEN;
335 extern HRESULT node_get_last_child(xmlnode*,IXMLDOMNode**) DECLSPEC_HIDDEN;
336 extern HRESULT node_get_previous_sibling(xmlnode*,IXMLDOMNode**) DECLSPEC_HIDDEN;
337 extern HRESULT node_get_next_sibling(xmlnode*,IXMLDOMNode**) DECLSPEC_HIDDEN;
338 extern HRESULT node_insert_before(xmlnode*,IXMLDOMNode*,const VARIANT*,IXMLDOMNode**) DECLSPEC_HIDDEN;
339 extern HRESULT node_replace_child(xmlnode*,IXMLDOMNode*,IXMLDOMNode*,IXMLDOMNode**) DECLSPEC_HIDDEN;
340 extern HRESULT node_put_text(xmlnode*,BSTR) DECLSPEC_HIDDEN;
341 extern HRESULT node_get_xml(xmlnode*,BOOL,BSTR*) DECLSPEC_HIDDEN;
342 extern HRESULT node_clone(xmlnode*,VARIANT_BOOL,IXMLDOMNode**) DECLSPEC_HIDDEN;
343 extern HRESULT node_get_prefix(xmlnode*,BSTR*) DECLSPEC_HIDDEN;
344 extern HRESULT node_get_base_name(xmlnode*,BSTR*) DECLSPEC_HIDDEN;
345 extern HRESULT node_get_namespaceURI(xmlnode*,BSTR*) DECLSPEC_HIDDEN;
346 extern HRESULT node_remove_child(xmlnode*,IXMLDOMNode*,IXMLDOMNode**) DECLSPEC_HIDDEN;
347 extern HRESULT node_has_childnodes(const xmlnode*,VARIANT_BOOL*) DECLSPEC_HIDDEN;
348 extern HRESULT node_get_owner_doc(const xmlnode*,IXMLDOMDocument**) DECLSPEC_HIDDEN;
349 extern HRESULT node_get_text(const xmlnode*,BSTR*) DECLSPEC_HIDDEN;
350 extern HRESULT node_select_nodes(const xmlnode*,BSTR,IXMLDOMNodeList**) DECLSPEC_HIDDEN;
351 extern HRESULT node_select_singlenode(const xmlnode*,BSTR,IXMLDOMNode**) DECLSPEC_HIDDEN;
352 extern HRESULT node_transform_node(const xmlnode*,IXMLDOMNode*,BSTR*) DECLSPEC_HIDDEN;
353 extern HRESULT node_create_supporterrorinfo(const tid_t*,void**) DECLSPEC_HIDDEN;
355 extern HRESULT get_domdoc_from_xmldoc(xmlDocPtr xmldoc, IXMLDOMDocument3 **document) DECLSPEC_HIDDEN;
357 extern HRESULT SchemaCache_validate_tree(IXMLDOMSchemaCollection2*, xmlNodePtr) DECLSPEC_HIDDEN;
358 extern XDR_DT SchemaCache_get_node_dt(IXMLDOMSchemaCollection2*, xmlNodePtr) DECLSPEC_HIDDEN;
359 extern HRESULT cache_from_doc_ns(IXMLDOMSchemaCollection2*, xmlnode*) DECLSPEC_HIDDEN;
361 extern XDR_DT str_to_dt(xmlChar const* str, int len /* calculated if -1 */) DECLSPEC_HIDDEN;
362 extern XDR_DT bstr_to_dt(OLECHAR const* bstr, int len /* calculated if -1 */) DECLSPEC_HIDDEN;
363 extern xmlChar const* dt_to_str(XDR_DT dt) DECLSPEC_HIDDEN;
364 extern const char* debugstr_dt(XDR_DT dt) DECLSPEC_HIDDEN;
365 extern OLECHAR const* dt_to_bstr(XDR_DT dt) DECLSPEC_HIDDEN;
366 extern HRESULT dt_validate(XDR_DT dt, xmlChar const* content) DECLSPEC_HIDDEN;
368 extern BSTR EnsureCorrectEOL(BSTR) DECLSPEC_HIDDEN;
370 extern xmlChar* tagName_to_XPath(const BSTR tagName) DECLSPEC_HIDDEN;
372 static inline BSTR bstr_from_xmlChar(const xmlChar *str)
374 BSTR ret = NULL;
376 if(str) {
377 DWORD len = MultiByteToWideChar(CP_UTF8, 0, (LPCSTR)str, -1, NULL, 0);
378 ret = SysAllocStringLen(NULL, len-1);
379 if(ret)
380 MultiByteToWideChar( CP_UTF8, 0, (LPCSTR)str, -1, ret, len);
382 else
383 ret = SysAllocStringLen(NULL, 0);
385 return ret;
388 static inline xmlChar *xmlchar_from_wcharn(const WCHAR *str, int nchars)
390 xmlChar *xmlstr;
391 DWORD len = WideCharToMultiByte( CP_UTF8, 0, str, nchars, NULL, 0, NULL, NULL );
393 xmlstr = heap_alloc( len+1 );
394 if ( xmlstr )
396 WideCharToMultiByte( CP_UTF8, 0, str, nchars, (LPSTR) xmlstr, len+1, NULL, NULL );
397 xmlstr[len] = 0;
399 return xmlstr;
402 static inline xmlChar *xmlchar_from_wchar( const WCHAR *str )
404 return xmlchar_from_wcharn(str, -1);
407 #endif
409 static inline HRESULT return_bstr(const WCHAR *value, BSTR *p)
411 if(!p)
412 return E_INVALIDARG;
414 if(value) {
415 *p = SysAllocString(value);
416 if(!*p)
417 return E_OUTOFMEMORY;
418 }else {
419 *p = NULL;
422 return S_OK;
425 static inline HRESULT return_null_node(IXMLDOMNode **p)
427 if(!p)
428 return E_INVALIDARG;
429 *p = NULL;
430 return S_FALSE;
433 static inline HRESULT return_null_ptr(void **p)
435 if(!p)
436 return E_INVALIDARG;
437 *p = NULL;
438 return S_FALSE;
441 static inline HRESULT return_null_var(VARIANT *p)
443 if(!p)
444 return E_INVALIDARG;
446 V_VT(p) = VT_NULL;
447 return S_FALSE;
450 static inline HRESULT return_null_bstr(BSTR *p)
452 if(!p)
453 return E_INVALIDARG;
455 *p = NULL;
456 return S_FALSE;
459 extern IXMLDOMParseError *create_parseError( LONG code, BSTR url, BSTR reason, BSTR srcText,
460 LONG line, LONG linepos, LONG filepos ) DECLSPEC_HIDDEN;
461 extern HRESULT DOMDocument_create(MSXML_VERSION, IUnknown*, void**) DECLSPEC_HIDDEN;
462 extern HRESULT SchemaCache_create(MSXML_VERSION, IUnknown*, void**) DECLSPEC_HIDDEN;
463 extern HRESULT XMLDocument_create(IUnknown*, void**) DECLSPEC_HIDDEN;
464 extern HRESULT SAXXMLReader_create(MSXML_VERSION, IUnknown*, void**) DECLSPEC_HIDDEN;
465 extern HRESULT SAXAttributes_create(MSXML_VERSION, IUnknown*, void**) DECLSPEC_HIDDEN;
466 extern HRESULT XMLHTTPRequest_create(IUnknown*, void **) DECLSPEC_HIDDEN;
467 extern HRESULT ServerXMLHTTP_create(IUnknown*, void **) DECLSPEC_HIDDEN;
468 extern HRESULT XSLTemplate_create(IUnknown*, void**) DECLSPEC_HIDDEN;
469 extern HRESULT MXWriter_create(MSXML_VERSION, IUnknown*, void**) DECLSPEC_HIDDEN;
470 extern HRESULT MXNamespaceManager_create(IUnknown*,void**) DECLSPEC_HIDDEN;
471 extern HRESULT XMLParser_create(IUnknown*,void**) DECLSPEC_HIDDEN;
472 extern HRESULT XMLView_create(IUnknown*,void**) DECLSPEC_HIDDEN;
474 static inline const CLSID* DOMDocument_version(MSXML_VERSION v)
476 switch (v)
478 default:
479 case MSXML_DEFAULT: return &CLSID_DOMDocument;
480 case MSXML3: return &CLSID_DOMDocument30;
481 case MSXML4: return &CLSID_DOMDocument40;
482 case MSXML6: return &CLSID_DOMDocument60;
486 static inline const CLSID* SchemaCache_version(MSXML_VERSION v)
488 switch (v)
490 default:
491 case MSXML_DEFAULT: return &CLSID_XMLSchemaCache;
492 case MSXML3: return &CLSID_XMLSchemaCache30;
493 case MSXML4: return &CLSID_XMLSchemaCache40;
494 case MSXML6: return &CLSID_XMLSchemaCache60;
498 typedef struct bsc_t bsc_t;
500 HRESULT create_moniker_from_url(LPCWSTR, IMoniker**) DECLSPEC_HIDDEN;
501 HRESULT bind_url(IMoniker*, HRESULT (*onDataAvailable)(void*,char*,DWORD), void*, bsc_t**) DECLSPEC_HIDDEN;
502 HRESULT detach_bsc(bsc_t*) DECLSPEC_HIDDEN;
504 const char *debugstr_variant(const VARIANT*) DECLSPEC_HIDDEN;
506 /* Error Codes - not defined anywhere in the public headers */
507 #define E_XML_ELEMENT_UNDECLARED 0xC00CE00D
508 #define E_XML_ELEMENT_ID_NOT_FOUND 0xC00CE00E
509 /* ... */
510 #define E_XML_EMPTY_NOT_ALLOWED 0xC00CE011
511 #define E_XML_ELEMENT_NOT_COMPLETE 0xC00CE012
512 #define E_XML_ROOT_NAME_MISMATCH 0xC00CE013
513 #define E_XML_INVALID_CONTENT 0xC00CE014
514 #define E_XML_ATTRIBUTE_NOT_DEFINED 0xC00CE015
515 #define E_XML_ATTRIBUTE_FIXED 0xC00CE016
516 #define E_XML_ATTRIBUTE_VALUE 0xC00CE017
517 #define E_XML_ILLEGAL_TEXT 0xC00CE018
518 /* ... */
519 #define E_XML_REQUIRED_ATTRIBUTE_MISSING 0xC00CE020
521 #endif /* __MSXML_PRIVATE__ */