2005-08-02 11:29:04 +00:00
|
|
|
/*
|
|
|
|
* MSXML Class Factory
|
|
|
|
*
|
|
|
|
* Copyright 2005 Mike McCormack
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MSXML_PRIVATE__
|
|
|
|
#define __MSXML_PRIVATE__
|
|
|
|
|
2005-08-09 11:17:47 +00:00
|
|
|
#include "xmldom.h"
|
|
|
|
|
2005-08-08 12:13:31 +00:00
|
|
|
#ifdef HAVE_LIBXML2
|
2005-08-03 10:58:47 +00:00
|
|
|
|
2005-08-15 09:43:53 +00:00
|
|
|
#ifdef HAVE_LIBXML_PARSER_H
|
2005-08-03 10:58:47 +00:00
|
|
|
#include <libxml/parser.h>
|
2005-08-15 09:43:53 +00:00
|
|
|
#endif
|
2005-08-03 10:58:47 +00:00
|
|
|
|
2005-08-10 09:54:22 +00:00
|
|
|
/* constructors */
|
|
|
|
extern IXMLDOMNode *create_domdoc_node( xmlDocPtr node );
|
|
|
|
extern IUnknown *create_domdoc( void );
|
|
|
|
extern IXMLDOMNode *create_attribute_node( xmlAttrPtr attr );
|
|
|
|
extern IUnknown *create_xmldoc( void );
|
|
|
|
extern IXMLDOMElement *create_element( xmlNodePtr element );
|
|
|
|
extern IXMLDOMNode *create_element_node( xmlNodePtr element );
|
2005-08-18 10:48:13 +00:00
|
|
|
extern IXMLDOMNamedNodeMap *create_nodemap( IXMLDOMNode *node );
|
|
|
|
extern IXMLDOMNode *create_generic_node( xmlNodePtr node );
|
|
|
|
extern IXMLDOMNodeList *create_nodelist( xmlNodePtr node );
|
2005-08-10 09:54:22 +00:00
|
|
|
|
|
|
|
/* data accessors */
|
2005-08-18 10:48:13 +00:00
|
|
|
xmlNodePtr xmlNodePtr_from_domnode( IXMLDOMNode *iface, xmlElementType type );
|
2005-08-10 09:54:22 +00:00
|
|
|
|
|
|
|
/* helpers */
|
|
|
|
extern xmlChar *xmlChar_from_wchar( LPWSTR str );
|
|
|
|
extern BSTR bstr_from_xmlChar( const xmlChar *buf );
|
2005-08-03 10:58:47 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2005-08-02 11:29:04 +00:00
|
|
|
extern HRESULT DOMDocument_create( IUnknown *pUnkOuter, LPVOID *ppObj );
|
|
|
|
|
|
|
|
#endif /* __MSXML_PRIVATE__ */
|