/*
* Copyright (C) 2010 Nikolay Sivov
*
* 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/*
* Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Oracle elects to use only
* the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
* a choice of LGPL license versions is made available with the language indicating
* that LGPLv2 or any later version may be used, or where a choice of which version
* of the LGPL is applied is otherwise unspecified.
*/
import "unknwn.idl";
import "objidl.idl";
import "oaidl.idl";
typedef enum XmlNodeType {
XmlNodeType_None = 0,
XmlNodeType_Element = 1,
XmlNodeType_Text = 3,
XmlNodeType_CDATA = 4,
XmlNodeType_Comment = 8,
XmlNodeType_DocumentType = 10,
XmlNodeType_Whitespace = 13,
XmlNodeType_EndElement = 15,
_XmlNodeType_Last = 17
} XmlNodeType;
/* IXmlReader */
[
]
interface IXmlReader : IUnknown
{
HRESULT MoveToFirstAttribute(void);
HRESULT MoveToNextAttribute(void);
HRESULT MoveToElement(void);
BOOL IsEmptyElement(void);
}
/* IXmlResolver */
[
]
interface IXmlResolver : IUnknown
{
}
/* IXmlReader state */
typedef enum XmlReadState
{
} XmlReadState;
/* conformance levels */
{
/* DTD processing mode */
typedef enum DtdProcessing
{
/* IXmlReader properties */
typedef enum XmlReaderProperty
{
/* reader error codes */
{
MX_E_MX = 0xc00cee00,
WC_E_WC = 0xc00cee20,
NC_E_NC = 0xc00cee60,
SC_E_SC = 0xc00cee80,
WR_E_WR = 0xc00cef00,
XML_E_INVALID_DECIMAL = 0xc00ce01d,
XML_E_INVALIDENCODING = 0xc00ce06e
} XmlError;
/* IXmlReader construction */
cpp_quote("STDAPI CreateXmlReader(REFIID riid, void **ppvObject, IMalloc *pMalloc);")
cpp_quote("typedef IUnknown IXmlReaderInput;")
cpp_quote("STDAPI CreateXmlReaderInputWithEncodingName(IUnknown *stream, IMalloc *pMalloc,")
cpp_quote(" LPCWSTR encoding, BOOL hint,")
cpp_quote(" LPCWSTR base_uri, IXmlReaderInput **ppInput);")
typedef enum XmlStandalone
{
typedef enum XmlWriterProperty
{
/* IXmlWriter */
[
]
interface IXmlWriter : IUnknown
{
}