rasapi32: Update spec file.
[wine/zf.git] / dlls / msxml3 / msxml_private.h
bloba59e00bf2b350b2d54d04893d1ed3c5a5210bc4a
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"
27 #include "wine/heap.h"
28 #include "wine/list.h"
30 #ifndef __WINE_CONFIG_H
31 # error You must include config.h to use this header
32 #endif
34 typedef enum {
35 MSXML_DEFAULT = 0,
36 MSXML2 = 20,
37 MSXML26 = 26,
38 MSXML3 = 30,
39 MSXML4 = 40,
40 MSXML6 = 60
41 } MSXML_VERSION;
43 extern const CLSID * DOMDocument_version(MSXML_VERSION v) DECLSPEC_HIDDEN;
44 extern const CLSID * SchemaCache_version(MSXML_VERSION v) DECLSPEC_HIDDEN;
46 /* typelibs */
47 typedef enum tid_t {
48 NULL_tid,
49 IXMLDOMAttribute_tid,
50 IXMLDOMCDATASection_tid,
51 IXMLDOMComment_tid,
52 IXMLDOMDocument_tid,
53 IXMLDOMDocument2_tid,
54 IXMLDOMDocument3_tid,
55 IXMLDOMDocumentFragment_tid,
56 IXMLDOMDocumentType_tid,
57 IXMLDOMElement_tid,
58 IXMLDOMEntityReference_tid,
59 IXMLDOMImplementation_tid,
60 IXMLDOMNamedNodeMap_tid,
61 IXMLDOMNode_tid,
62 IXMLDOMNodeList_tid,
63 IXMLDOMParseError2_tid,
64 IXMLDOMProcessingInstruction_tid,
65 IXMLDOMSchemaCollection_tid,
66 IXMLDOMSchemaCollection2_tid,
67 IXMLDOMSelection_tid,
68 IXMLDOMText_tid,
69 IXMLElement_tid,
70 IXMLDocument_tid,
71 IXMLHTTPRequest_tid,
72 IXSLProcessor_tid,
73 IXSLTemplate_tid,
74 IVBSAXAttributes_tid,
75 IVBSAXContentHandler_tid,
76 IVBSAXDeclHandler_tid,
77 IVBSAXDTDHandler_tid,
78 IVBSAXEntityResolver_tid,
79 IVBSAXErrorHandler_tid,
80 IVBSAXLexicalHandler_tid,
81 IVBSAXLocator_tid,
82 IVBSAXXMLFilter_tid,
83 IVBSAXXMLReader_tid,
84 IMXAttributes_tid,
85 IMXReaderControl_tid,
86 IMXWriter_tid,
87 IVBMXNamespaceManager_tid,
88 IServerXMLHTTPRequest_tid,
89 LAST_tid
90 } tid_t;
92 /* The XDR datatypes (urn:schemas-microsoft-com:datatypes)
93 * These are actually valid for XSD schemas as well
94 * See datatypes.xsd
96 typedef enum _XDR_DT {
97 DT_INVALID = -1,
98 DT_BIN_BASE64,
99 DT_BIN_HEX,
100 DT_BOOLEAN,
101 DT_CHAR,
102 DT_DATE,
103 DT_DATE_TZ,
104 DT_DATETIME,
105 DT_DATETIME_TZ,
106 DT_ENTITY,
107 DT_ENTITIES,
108 DT_ENUMERATION,
109 DT_FIXED_14_4,
110 DT_FLOAT,
111 DT_I1,
112 DT_I2,
113 DT_I4,
114 DT_I8,
115 DT_ID,
116 DT_IDREF,
117 DT_IDREFS,
118 DT_INT,
119 DT_NMTOKEN,
120 DT_NMTOKENS,
121 DT_NOTATION,
122 DT_NUMBER,
123 DT_R4,
124 DT_R8,
125 DT_STRING,
126 DT_TIME,
127 DT_TIME_TZ,
128 DT_UI1,
129 DT_UI2,
130 DT_UI4,
131 DT_UI8,
132 DT_URI,
133 DT_UUID,
134 LAST_DT
135 } XDR_DT;
137 extern HRESULT get_typeinfo(tid_t tid, ITypeInfo **typeinfo) DECLSPEC_HIDDEN;
138 extern void release_typelib(void) DECLSPEC_HIDDEN;
140 typedef struct dispex_data_t dispex_data_t;
142 typedef struct {
143 HRESULT (*get_dispid)(IUnknown*,BSTR,DWORD,DISPID*);
144 HRESULT (*invoke)(IUnknown*,DISPID,LCID,WORD,DISPPARAMS*,VARIANT*,EXCEPINFO*);
145 } dispex_static_data_vtbl_t;
147 typedef struct {
148 const dispex_static_data_vtbl_t *vtbl;
149 const tid_t disp_tid;
150 dispex_data_t *data;
151 const tid_t* const iface_tids;
152 } dispex_static_data_t;
154 typedef struct {
155 IDispatchEx IDispatchEx_iface;
157 IUnknown *outer;
159 dispex_static_data_t *data;
160 } DispatchEx;
162 extern HINSTANCE MSXML_hInstance DECLSPEC_HIDDEN;
164 void init_dispex(DispatchEx*,IUnknown*,dispex_static_data_t*) DECLSPEC_HIDDEN;
165 void release_dispex(DispatchEx*) DECLSPEC_HIDDEN;
166 BOOL dispex_query_interface(DispatchEx*,REFIID,void**) DECLSPEC_HIDDEN;
167 const IID *get_riid_from_tid(enum tid_t tid) DECLSPEC_HIDDEN;
169 /* memory allocation functions */
171 static inline void* __WINE_ALLOC_SIZE(2) heap_realloc_zero(void *mem, size_t size)
173 return HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, mem, size);
176 static inline LPWSTR heap_strdupW(LPCWSTR str)
178 LPWSTR ret = NULL;
180 if(str) {
181 DWORD size;
183 size = (strlenW(str)+1)*sizeof(WCHAR);
184 ret = heap_alloc(size);
185 if(ret)
186 memcpy(ret, str, size);
189 return ret;
192 /* XSLProcessor parameter list */
193 struct xslprocessor_par
195 struct list entry;
196 BSTR name;
197 BSTR value;
200 struct xslprocessor_params
202 struct list list;
203 unsigned int count;
206 #ifdef HAVE_LIBXML2
208 extern void schemasInit(void) DECLSPEC_HIDDEN;
209 extern void schemasCleanup(void) DECLSPEC_HIDDEN;
211 #ifndef HAVE_XMLFIRSTELEMENTCHILD
212 static inline xmlNodePtr wine_xmlFirstElementChild(xmlNodePtr parent)
214 xmlNodePtr child;
215 for (child = parent->children; child != NULL; child = child->next)
216 if (child->type == XML_ELEMENT_NODE)
217 break;
219 return child;
221 #define xmlFirstElementChild wine_xmlFirstElementChild
222 #endif
224 /* IXMLDOMNode Internal Structure */
225 typedef struct _xmlnode
227 DispatchEx dispex;
228 IXMLDOMNode *iface;
229 IXMLDOMNode *parent;
230 xmlNodePtr node;
231 } xmlnode;
233 /* IXMLDOMNamedNodeMap custom function table */
234 struct nodemap_funcs
236 HRESULT (*get_named_item)(const xmlNodePtr,BSTR,IXMLDOMNode**);
237 HRESULT (*set_named_item)(xmlNodePtr,IXMLDOMNode*,IXMLDOMNode**);
238 HRESULT (*remove_named_item)(xmlNodePtr,BSTR,IXMLDOMNode**);
239 HRESULT (*get_item)(xmlNodePtr,LONG,IXMLDOMNode**);
240 HRESULT (*get_length)(xmlNodePtr,LONG*);
241 HRESULT (*get_qualified_item)(const xmlNodePtr,BSTR,BSTR,IXMLDOMNode**);
242 HRESULT (*remove_qualified_item)(xmlNodePtr,BSTR,BSTR,IXMLDOMNode**);
243 HRESULT (*next_node)(const xmlNodePtr,LONG*,IXMLDOMNode**);
246 /* used by IEnumVARIANT to access outer object items */
247 struct enumvariant_funcs
249 HRESULT (*get_item)(IUnknown*, LONG, VARIANT*);
250 HRESULT (*next)(IUnknown*);
253 /* constructors */
254 extern IUnknown *create_domdoc( xmlNodePtr ) DECLSPEC_HIDDEN;
255 extern IUnknown *create_xmldoc( void ) DECLSPEC_HIDDEN;
256 extern IXMLDOMNode *create_node( xmlNodePtr ) DECLSPEC_HIDDEN;
257 extern IUnknown *create_element( xmlNodePtr ) DECLSPEC_HIDDEN;
258 extern IUnknown *create_attribute( xmlNodePtr, BOOL ) DECLSPEC_HIDDEN;
259 extern IUnknown *create_text( xmlNodePtr ) DECLSPEC_HIDDEN;
260 extern IUnknown *create_pi( xmlNodePtr ) DECLSPEC_HIDDEN;
261 extern IUnknown *create_comment( xmlNodePtr ) DECLSPEC_HIDDEN;
262 extern IUnknown *create_cdata( xmlNodePtr ) DECLSPEC_HIDDEN;
263 extern IXMLDOMNodeList *create_children_nodelist( xmlNodePtr ) DECLSPEC_HIDDEN;
264 extern IXMLDOMNamedNodeMap *create_nodemap( xmlNodePtr, const struct nodemap_funcs* ) DECLSPEC_HIDDEN;
265 extern IUnknown *create_doc_Implementation(void) DECLSPEC_HIDDEN;
266 extern IUnknown *create_doc_fragment( xmlNodePtr ) DECLSPEC_HIDDEN;
267 extern IUnknown *create_doc_entity_ref( xmlNodePtr ) DECLSPEC_HIDDEN;
268 extern IUnknown *create_doc_type( xmlNodePtr ) DECLSPEC_HIDDEN;
269 extern HRESULT create_selection( xmlNodePtr, xmlChar*, IXMLDOMNodeList** ) DECLSPEC_HIDDEN;
270 extern HRESULT create_enumvariant( IUnknown*, BOOL, const struct enumvariant_funcs*, IEnumVARIANT**) DECLSPEC_HIDDEN;
272 /* data accessors */
273 xmlNodePtr xmlNodePtr_from_domnode( IXMLDOMNode *iface, xmlElementType type ) DECLSPEC_HIDDEN;
275 /* helpers */
276 extern xmlChar *xmlChar_from_wchar( LPCWSTR str ) DECLSPEC_HIDDEN;
278 extern void xmldoc_init( xmlDocPtr doc, MSXML_VERSION version ) DECLSPEC_HIDDEN;
279 extern LONG xmldoc_add_ref( xmlDocPtr doc ) DECLSPEC_HIDDEN;
280 extern LONG xmldoc_release( xmlDocPtr doc ) DECLSPEC_HIDDEN;
281 extern LONG xmldoc_add_refs( xmlDocPtr doc, LONG refs ) DECLSPEC_HIDDEN;
282 extern LONG xmldoc_release_refs ( xmlDocPtr doc, LONG refs ) DECLSPEC_HIDDEN;
283 extern void xmlnode_add_ref(xmlNodePtr node) DECLSPEC_HIDDEN;
284 extern void xmlnode_release(xmlNodePtr node) DECLSPEC_HIDDEN;
285 extern int xmlnode_get_inst_cnt( xmlnode *node ) DECLSPEC_HIDDEN;
286 extern HRESULT xmldoc_add_orphan( xmlDocPtr doc, xmlNodePtr node ) DECLSPEC_HIDDEN;
287 extern HRESULT xmldoc_remove_orphan( xmlDocPtr doc, xmlNodePtr node ) DECLSPEC_HIDDEN;
288 extern void xmldoc_link_xmldecl(xmlDocPtr doc, xmlNodePtr node) DECLSPEC_HIDDEN;
289 extern xmlNodePtr xmldoc_unlink_xmldecl(xmlDocPtr doc) DECLSPEC_HIDDEN;
290 extern MSXML_VERSION xmldoc_version( xmlDocPtr doc ) DECLSPEC_HIDDEN;
292 extern HRESULT XMLElement_create( xmlNodePtr node, LPVOID *ppObj, BOOL own ) DECLSPEC_HIDDEN;
294 extern void wineXmlCallbackLog(char const* caller, xmlErrorLevel lvl, char const* msg, va_list ap) DECLSPEC_HIDDEN;
295 extern void wineXmlCallbackError(char const* caller, xmlErrorPtr err) DECLSPEC_HIDDEN;
297 #define LIBXML2_LOG_CALLBACK __WINE_PRINTF_ATTR(2,3)
299 #define LIBXML2_CALLBACK_TRACE(caller, msg, ap) \
300 wineXmlCallbackLog(#caller, XML_ERR_NONE, msg, ap)
302 #define LIBXML2_CALLBACK_WARN(caller, msg, ap) \
303 wineXmlCallbackLog(#caller, XML_ERR_WARNING, msg, ap)
305 #define LIBXML2_CALLBACK_ERR(caller, msg, ap) \
306 wineXmlCallbackLog(#caller, XML_ERR_ERROR, msg, ap)
308 #define LIBXML2_CALLBACK_SERROR(caller, err) wineXmlCallbackError(#caller, err)
310 extern BOOL is_preserving_whitespace(xmlNodePtr node) DECLSPEC_HIDDEN;
311 extern BOOL is_xpathmode(const xmlDocPtr doc) DECLSPEC_HIDDEN;
312 extern void set_xpathmode(xmlDocPtr doc, BOOL xpath) DECLSPEC_HIDDEN;
314 extern void init_xmlnode(xmlnode*,xmlNodePtr,IXMLDOMNode*,dispex_static_data_t*) DECLSPEC_HIDDEN;
315 extern void destroy_xmlnode(xmlnode*) DECLSPEC_HIDDEN;
316 extern BOOL node_query_interface(xmlnode*,REFIID,void**) DECLSPEC_HIDDEN;
317 extern xmlnode *get_node_obj(IXMLDOMNode*) DECLSPEC_HIDDEN;
319 extern HRESULT node_append_child(xmlnode*,IXMLDOMNode*,IXMLDOMNode**) DECLSPEC_HIDDEN;
320 extern HRESULT node_get_nodeName(xmlnode*,BSTR*) DECLSPEC_HIDDEN;
321 extern HRESULT node_get_content(xmlnode*,VARIANT*) DECLSPEC_HIDDEN;
322 extern HRESULT node_set_content(xmlnode*,LPCWSTR) DECLSPEC_HIDDEN;
323 extern HRESULT node_put_value(xmlnode*,VARIANT*) DECLSPEC_HIDDEN;
324 extern HRESULT node_put_value_escaped(xmlnode*,VARIANT*) DECLSPEC_HIDDEN;
325 extern HRESULT node_get_parent(xmlnode*,IXMLDOMNode**) DECLSPEC_HIDDEN;
326 extern HRESULT node_get_child_nodes(xmlnode*,IXMLDOMNodeList**) DECLSPEC_HIDDEN;
327 extern HRESULT node_get_first_child(xmlnode*,IXMLDOMNode**) DECLSPEC_HIDDEN;
328 extern HRESULT node_get_last_child(xmlnode*,IXMLDOMNode**) DECLSPEC_HIDDEN;
329 extern HRESULT node_get_previous_sibling(xmlnode*,IXMLDOMNode**) DECLSPEC_HIDDEN;
330 extern HRESULT node_get_next_sibling(xmlnode*,IXMLDOMNode**) DECLSPEC_HIDDEN;
331 extern HRESULT node_insert_before(xmlnode*,IXMLDOMNode*,const VARIANT*,IXMLDOMNode**) DECLSPEC_HIDDEN;
332 extern HRESULT node_replace_child(xmlnode*,IXMLDOMNode*,IXMLDOMNode*,IXMLDOMNode**) DECLSPEC_HIDDEN;
333 extern HRESULT node_put_text(xmlnode*,BSTR) DECLSPEC_HIDDEN;
334 extern HRESULT node_get_xml(xmlnode*,BOOL,BSTR*) DECLSPEC_HIDDEN;
335 extern HRESULT node_clone(xmlnode*,VARIANT_BOOL,IXMLDOMNode**) DECLSPEC_HIDDEN;
336 extern HRESULT node_get_prefix(xmlnode*,BSTR*) DECLSPEC_HIDDEN;
337 extern HRESULT node_get_base_name(xmlnode*,BSTR*) DECLSPEC_HIDDEN;
338 extern HRESULT node_get_namespaceURI(xmlnode*,BSTR*) DECLSPEC_HIDDEN;
339 extern HRESULT node_remove_child(xmlnode*,IXMLDOMNode*,IXMLDOMNode**) DECLSPEC_HIDDEN;
340 extern HRESULT node_has_childnodes(const xmlnode*,VARIANT_BOOL*) DECLSPEC_HIDDEN;
341 extern HRESULT node_get_owner_doc(const xmlnode*,IXMLDOMDocument**) DECLSPEC_HIDDEN;
342 extern HRESULT node_get_text(const xmlnode*,BSTR*) DECLSPEC_HIDDEN;
343 extern HRESULT node_select_nodes(const xmlnode*,BSTR,IXMLDOMNodeList**) DECLSPEC_HIDDEN;
344 extern HRESULT node_select_singlenode(const xmlnode*,BSTR,IXMLDOMNode**) DECLSPEC_HIDDEN;
345 extern HRESULT node_transform_node(const xmlnode*,IXMLDOMNode*,BSTR*) DECLSPEC_HIDDEN;
346 extern HRESULT node_transform_node_params(const xmlnode*,IXMLDOMNode*,BSTR*,ISequentialStream*,
347 const struct xslprocessor_params*) DECLSPEC_HIDDEN;
348 extern HRESULT node_create_supporterrorinfo(const tid_t*,void**) DECLSPEC_HIDDEN;
350 extern HRESULT get_domdoc_from_xmldoc(xmlDocPtr xmldoc, IXMLDOMDocument3 **document) DECLSPEC_HIDDEN;
352 extern HRESULT SchemaCache_validate_tree(IXMLDOMSchemaCollection2*, xmlNodePtr) DECLSPEC_HIDDEN;
353 extern XDR_DT SchemaCache_get_node_dt(IXMLDOMSchemaCollection2*, xmlNodePtr) DECLSPEC_HIDDEN;
354 extern HRESULT cache_from_doc_ns(IXMLDOMSchemaCollection2*, xmlnode*) DECLSPEC_HIDDEN;
356 extern XDR_DT str_to_dt(xmlChar const* str, int len /* calculated if -1 */) DECLSPEC_HIDDEN;
357 extern XDR_DT bstr_to_dt(OLECHAR const* bstr, int len /* calculated if -1 */) DECLSPEC_HIDDEN;
358 extern xmlChar const* dt_to_str(XDR_DT dt) DECLSPEC_HIDDEN;
359 extern const char* debugstr_dt(XDR_DT dt) DECLSPEC_HIDDEN;
360 extern OLECHAR const* dt_to_bstr(XDR_DT dt) DECLSPEC_HIDDEN;
361 extern HRESULT dt_validate(XDR_DT dt, xmlChar const* content) DECLSPEC_HIDDEN;
363 extern BSTR EnsureCorrectEOL(BSTR) DECLSPEC_HIDDEN;
365 extern xmlChar* tagName_to_XPath(const BSTR tagName) DECLSPEC_HIDDEN;
367 #ifdef SONAME_LIBXSLT
368 # include <libxslt/documents.h>
369 extern xmlDocPtr xslt_doc_default_loader(const xmlChar *uri, xmlDictPtr dict, int options,
370 void *_ctxt, xsltLoadType type) DECLSPEC_HIDDEN;
371 #endif /* SONAME_LIBXSLT */
373 static inline BSTR bstr_from_xmlChar(const xmlChar *str)
375 BSTR ret = NULL;
377 if(str) {
378 DWORD len = MultiByteToWideChar(CP_UTF8, 0, (LPCSTR)str, -1, NULL, 0);
379 ret = SysAllocStringLen(NULL, len-1);
380 if(ret)
381 MultiByteToWideChar( CP_UTF8, 0, (LPCSTR)str, -1, ret, len);
383 else
384 ret = SysAllocStringLen(NULL, 0);
386 return ret;
389 static inline xmlChar *xmlchar_from_wcharn(const WCHAR *str, int nchars, BOOL use_xml_alloc)
391 xmlChar *xmlstr;
392 DWORD len = WideCharToMultiByte( CP_UTF8, 0, str, nchars, NULL, 0, NULL, NULL );
394 xmlstr = use_xml_alloc ? xmlMalloc( len + 1 ) : heap_alloc( len + 1 );
395 if ( xmlstr )
397 WideCharToMultiByte( CP_UTF8, 0, str, nchars, (LPSTR) xmlstr, len+1, NULL, NULL );
398 xmlstr[len] = 0;
400 return xmlstr;
403 static inline xmlChar *xmlchar_from_wchar( const WCHAR *str )
405 return xmlchar_from_wcharn(str, -1, FALSE);
408 static inline xmlChar *heap_strdupxmlChar(const xmlChar *str)
410 xmlChar *ret = NULL;
412 if(str) {
413 DWORD size;
415 size = (xmlStrlen(str)+1)*sizeof(xmlChar);
416 ret = heap_alloc(size);
417 memcpy(ret, str, size);
420 return ret;
423 #endif
425 static inline HRESULT return_bstr(const WCHAR *value, BSTR *p)
427 if(!p)
428 return E_INVALIDARG;
430 if(value) {
431 *p = SysAllocString(value);
432 if(!*p)
433 return E_OUTOFMEMORY;
434 }else {
435 *p = NULL;
438 return S_OK;
441 static inline HRESULT return_bstrn(const WCHAR *value, int len, BSTR *p)
443 if(value) {
444 *p = SysAllocStringLen(value, len);
445 if(!*p)
446 return E_OUTOFMEMORY;
447 }else
448 *p = NULL;
450 return S_OK;
453 static inline HRESULT return_null_node(IXMLDOMNode **p)
455 if(!p)
456 return E_INVALIDARG;
457 *p = NULL;
458 return S_FALSE;
461 static inline HRESULT return_null_ptr(void **p)
463 if(!p)
464 return E_INVALIDARG;
465 *p = NULL;
466 return S_FALSE;
469 static inline HRESULT return_null_var(VARIANT *p)
471 if(!p)
472 return E_INVALIDARG;
474 V_VT(p) = VT_NULL;
475 return S_FALSE;
478 static inline HRESULT return_null_bstr(BSTR *p)
480 if(!p)
481 return E_INVALIDARG;
483 *p = NULL;
484 return S_FALSE;
487 static inline HRESULT return_var_false(VARIANT_BOOL *p)
489 if(!p)
490 return E_INVALIDARG;
492 *p = VARIANT_FALSE;
493 return S_FALSE;
496 extern IXMLDOMParseError *create_parseError( LONG code, BSTR url, BSTR reason, BSTR srcText,
497 LONG line, LONG linepos, LONG filepos ) DECLSPEC_HIDDEN;
498 extern HRESULT DOMDocument_create(MSXML_VERSION, void**) DECLSPEC_HIDDEN;
499 extern HRESULT SchemaCache_create(MSXML_VERSION, void**) DECLSPEC_HIDDEN;
500 extern HRESULT XMLDocument_create(void**) DECLSPEC_HIDDEN;
501 extern HRESULT SAXXMLReader_create(MSXML_VERSION, void**) DECLSPEC_HIDDEN;
502 extern HRESULT SAXAttributes_create(MSXML_VERSION, void**) DECLSPEC_HIDDEN;
503 extern HRESULT XMLHTTPRequest_create(void **) DECLSPEC_HIDDEN;
504 extern HRESULT ServerXMLHTTP_create(void **) DECLSPEC_HIDDEN;
505 extern HRESULT XSLTemplate_create(void**) DECLSPEC_HIDDEN;
506 extern HRESULT MXWriter_create(MSXML_VERSION, void**) DECLSPEC_HIDDEN;
507 extern HRESULT MXNamespaceManager_create(void**) DECLSPEC_HIDDEN;
508 extern HRESULT XMLParser_create(void**) DECLSPEC_HIDDEN;
509 extern HRESULT XMLView_create(void**) DECLSPEC_HIDDEN;
511 typedef struct bsc_t bsc_t;
513 HRESULT create_moniker_from_url(LPCWSTR, IMoniker**) DECLSPEC_HIDDEN;
514 HRESULT create_uri(IUri *base, const WCHAR *, IUri **) DECLSPEC_HIDDEN;
515 HRESULT bind_url(IMoniker*, HRESULT (*onDataAvailable)(void*,char*,DWORD), void*, bsc_t**) DECLSPEC_HIDDEN;
516 HRESULT detach_bsc(bsc_t*) DECLSPEC_HIDDEN;
517 IUri *get_base_uri(IUnknown *) DECLSPEC_HIDDEN;
519 /* Error Codes - not defined anywhere in the public headers */
520 #define E_XML_ELEMENT_UNDECLARED 0xC00CE00D
521 #define E_XML_ELEMENT_ID_NOT_FOUND 0xC00CE00E
522 /* ... */
523 #define E_XML_EMPTY_NOT_ALLOWED 0xC00CE011
524 #define E_XML_ELEMENT_NOT_COMPLETE 0xC00CE012
525 #define E_XML_ROOT_NAME_MISMATCH 0xC00CE013
526 #define E_XML_INVALID_CONTENT 0xC00CE014
527 #define E_XML_ATTRIBUTE_NOT_DEFINED 0xC00CE015
528 #define E_XML_ATTRIBUTE_FIXED 0xC00CE016
529 #define E_XML_ATTRIBUTE_VALUE 0xC00CE017
530 #define E_XML_ILLEGAL_TEXT 0xC00CE018
531 /* ... */
532 #define E_XML_REQUIRED_ATTRIBUTE_MISSING 0xC00CE020
534 #define NODE_PRIV_TRAILING_IGNORABLE_WS 0x40000000
535 #define NODE_PRIV_CHILD_IGNORABLE_WS 0x80000000
536 #define NODE_PRIV_REFCOUNT_MASK ~(NODE_PRIV_TRAILING_IGNORABLE_WS|NODE_PRIV_CHILD_IGNORABLE_WS)
537 #endif /* __MSXML_PRIVATE__ */