ReactOS  0.4.15-dev-313-g8fde48b
xmllite.idl File Reference

Go to the source code of this file.

Classes

interface  IXmlReader
 
interface  IXmlResolver
 
interface  IXmlWriter
 

Typedefs

typedef enum XmlNodeType XmlNodeType
 
typedef enum XmlReadState XmlReadState
 
typedef enum XmlConformanceLevel XmlConformanceLevel
 
typedef enum DtdProcessing DtdProcessing
 
typedef enum XmlReaderProperty XmlReaderProperty
 
typedef enum XmlError XmlError
 
typedef IUnknown IXmlReaderInput
 
typedef enum XmlStandalone XmlStandalone
 
typedef enum XmlWriterProperty XmlWriterProperty
 
typedef IUnknown IXmlWriterOutput
 

Enumerations

enum  XmlNodeType {
  XmlNodeType_None = 0, XmlNodeType_Element = 1, XmlNodeType_Attribute = 2, XmlNodeType_Text = 3,
  XmlNodeType_CDATA = 4, XmlNodeType_ProcessingInstruction = 7, XmlNodeType_Comment = 8, XmlNodeType_DocumentType = 10,
  XmlNodeType_Whitespace = 13, XmlNodeType_EndElement = 15, XmlNodeType_XmlDeclaration = 17, _XmlNodeType_Last = 17
}
 
enum  XmlReadState {
  XmlReadState_Initial, XmlReadState_Interactive, XmlReadState_Error, XmlReadState_EndOfFile,
  XmlReadState_Closed
}
 
enum  XmlConformanceLevel { XmlConformanceLevel_Auto, XmlConformanceLevel_Fragment, XmlConformanceLevel_Document, _XmlConformanceLevel_Last = XmlConformanceLevel_Document }
 
enum  DtdProcessing { DtdProcessing_Prohibit, DtdProcessing_Parse, _DtdProcessing_Last = DtdProcessing_Parse }
 
enum  XmlReaderProperty {
  XmlReaderProperty_MultiLanguage, XmlReaderProperty_ConformanceLevel, XmlReaderProperty_RandomAccess, XmlReaderProperty_XmlResolver,
  XmlReaderProperty_DtdProcessing, XmlReaderProperty_ReadState, XmlReaderProperty_MaxElementDepth, XmlReaderProperty_MaxEntityExpansion,
  _XmlReaderProperty_Last = XmlReaderProperty_MaxEntityExpansion
}
 
enum  XmlError {
  MX_E_MX = 0xc00cee00, MX_E_INPUTEND, MX_E_ENCODING, MX_E_ENCODINGSWITCH,
  MX_E_ENCODINGSIGNATURE, WC_E_WC = 0xc00cee20, WC_E_WHITESPACE, WC_E_SEMICOLON,
  WC_E_GREATERTHAN, WC_E_QUOTE, WC_E_EQUAL, WC_E_LESSTHAN,
  WC_E_HEXDIGIT, WC_E_DIGIT, WC_E_LEFTBRACKET, WC_E_LEFTPAREN,
  WC_E_XMLCHARACTER, WC_E_NAMECHARACTER, WC_E_SYNTAX, WC_E_CDSECT,
  WC_E_COMMENT, WC_E_CONDSECT, WC_E_DECLATTLIST, WC_E_DECLDOCTYPE,
  WC_E_DECLELEMENT, WC_E_DECLENTITY, WC_E_DECLNOTATION, WC_E_NDATA,
  WC_E_PUBLIC, WC_E_SYSTEM, WC_E_NAME, WC_E_ROOTELEMENT,
  WC_E_ELEMENTMATCH, WC_E_UNIQUEATTRIBUTE, WC_E_TEXTXMLDECL, WC_E_LEADINGXML,
  WC_E_TEXTDECL, WC_E_XMLDECL, WC_E_ENCNAME, WC_E_PUBLICID,
  WC_E_PESINTERNALSUBSET, WC_E_PESBETWEENDECLS, WC_E_NORECURSION, WC_E_ENTITYCONTENT,
  WC_E_UNDECLAREDENTITY, WC_E_PARSEDENTITY, WC_E_NOEXTERNALENTITYREF, WC_E_PI,
  WC_E_SYSTEMID, WC_E_QUESTIONMARK, WC_E_CDSECTEND, WC_E_MOREDATA,
  WC_E_DTDPROHIBITED, WC_E_INVALIDXMLSPACE, NC_E_NC = 0xc00cee60, NC_E_QNAMECHARACTER,
  NC_E_QNAMECOLON, NC_E_NAMECOLON, NC_E_DECLAREDPREFIX, NC_E_UNDECLAREDPREFIX,
  NC_E_EMPTYURI, NC_E_XMLPREFIXRESERVED, NC_E_XMLNSPREFIXRESERVED, NC_E_XMLURIRESERVED,
  NC_E_XMLNSURIRESERVED, SC_E_SC = 0xc00cee80, SC_E_MAXELEMENTDEPTH, SC_E_MAXENTITYEXPANSION,
  WR_E_WR = 0xc00cef00, WR_E_NONWHITESPACE, WR_E_NSPREFIXDECLARED, WR_E_NSPREFIXWITHEMPTYNSURI,
  WR_E_DUPLICATEATTRIBUTE, WR_E_XMLNSPREFIXDECLARATION, WR_E_XMLPREFIXDECLARATION, WR_E_XMLURIDECLARATION,
  WR_E_XMLNSURIDECLARATION, WR_E_NAMESPACEUNDECLARED, WR_E_INVALIDXMLSPACE, WR_E_INVALIDACTION,
  WR_E_INVALIDSURROGATEPAIR, XML_E_INVALID_DECIMAL = 0xc00ce01d, XML_E_INVALID_HEXIDECIMAL, XML_E_INVALID_UNICODE,
  XML_E_INVALIDENCODING = 0xc00ce06e
}
 
enum  XmlStandalone { XmlStandalone_Omit, XmlStandalone_Yes, XmlStandalone_No, _XmlStandalone_Last = XmlStandalone_No }
 
enum  XmlWriterProperty {
  XmlWriterProperty_MultiLanguage, XmlWriterProperty_Indent, XmlWriterProperty_ByteOrderMark, XmlWriterProperty_OmitXmlDeclaration,
  XmlWriterProperty_ConformanceLevel, _XmlWriterProperty_Last = XmlWriterProperty_OmitXmlDeclaration
}
 

Functions

STDAPI CreateXmlReader (REFIID riid, void **ppvObject, IMalloc *pMalloc)
 
STDAPI CreateXmlReaderInputWithEncodingName (IUnknown *stream, IMalloc *pMalloc,") cpp_quote(" LPCWSTR encoding, BOOL hint,") cpp_quote(" LPCWSTR base_uri, IXmlReaderInput **ppInput)
 
STDAPI CreateXmlWriter (REFIID riid, void **ppvObject, IMalloc *pMalloc)
 
STDAPI CreateXmlWriterOutputWithEncodingName (IUnknown *stream, IMalloc *pMalloc,") cpp_quote(" LPCWSTR encoding, IXmlWriterOutput **output)
 
STDAPI CreateXmlWriterOutputWithEncodingCodePage (IUnknown *stream, IMalloc *pMalloc,") cpp_quote(" UINT codepage, IXmlWriterOutput **output)
 

Typedef Documentation

◆ DtdProcessing

◆ IXmlReaderInput

Definition at line 230 of file xmllite.idl.

◆ IXmlWriterOutput

Definition at line 300 of file xmllite.idl.

◆ XmlConformanceLevel

◆ XmlError

◆ XmlNodeType

◆ XmlReaderProperty

◆ XmlReadState

◆ XmlStandalone

◆ XmlWriterProperty

Enumeration Type Documentation

◆ DtdProcessing

Enumerator
DtdProcessing_Prohibit 
DtdProcessing_Parse 
_DtdProcessing_Last 

Definition at line 116 of file xmllite.idl.

◆ XmlConformanceLevel

Enumerator
XmlConformanceLevel_Auto 
XmlConformanceLevel_Fragment 
XmlConformanceLevel_Document 
_XmlConformanceLevel_Last 

Definition at line 107 of file xmllite.idl.

◆ XmlError

Enumerator
MX_E_MX 
MX_E_INPUTEND 
MX_E_ENCODING 
MX_E_ENCODINGSWITCH 
MX_E_ENCODINGSIGNATURE 
WC_E_WC 
WC_E_WHITESPACE 
WC_E_SEMICOLON 
WC_E_GREATERTHAN 
WC_E_QUOTE 
WC_E_EQUAL 
WC_E_LESSTHAN 
WC_E_HEXDIGIT 
WC_E_DIGIT 
WC_E_LEFTBRACKET 
WC_E_LEFTPAREN 
WC_E_XMLCHARACTER 
WC_E_NAMECHARACTER 
WC_E_SYNTAX 
WC_E_CDSECT 
WC_E_COMMENT 
WC_E_CONDSECT 
WC_E_DECLATTLIST 
WC_E_DECLDOCTYPE 
WC_E_DECLELEMENT 
WC_E_DECLENTITY 
WC_E_DECLNOTATION 
WC_E_NDATA 
WC_E_PUBLIC 
WC_E_SYSTEM 
WC_E_NAME 
WC_E_ROOTELEMENT 
WC_E_ELEMENTMATCH 
WC_E_UNIQUEATTRIBUTE 
WC_E_TEXTXMLDECL 
WC_E_LEADINGXML 
WC_E_TEXTDECL 
WC_E_XMLDECL 
WC_E_ENCNAME 
WC_E_PUBLICID 
WC_E_PESINTERNALSUBSET 
WC_E_PESBETWEENDECLS 
WC_E_NORECURSION 
WC_E_ENTITYCONTENT 
WC_E_UNDECLAREDENTITY 
WC_E_PARSEDENTITY 
WC_E_NOEXTERNALENTITYREF 
WC_E_PI 
WC_E_SYSTEMID 
WC_E_QUESTIONMARK 
WC_E_CDSECTEND 
WC_E_MOREDATA 
WC_E_DTDPROHIBITED 
WC_E_INVALIDXMLSPACE 
NC_E_NC 
NC_E_QNAMECHARACTER 
NC_E_QNAMECOLON 
NC_E_NAMECOLON 
NC_E_DECLAREDPREFIX 
NC_E_UNDECLAREDPREFIX 
NC_E_EMPTYURI 
NC_E_XMLPREFIXRESERVED 
NC_E_XMLNSPREFIXRESERVED 
NC_E_XMLURIRESERVED 
NC_E_XMLNSURIRESERVED 
SC_E_SC 
SC_E_MAXELEMENTDEPTH 
SC_E_MAXENTITYEXPANSION 
WR_E_WR 
WR_E_NONWHITESPACE 
WR_E_NSPREFIXDECLARED 
WR_E_NSPREFIXWITHEMPTYNSURI 
WR_E_DUPLICATEATTRIBUTE 
WR_E_XMLNSPREFIXDECLARATION 
WR_E_XMLPREFIXDECLARATION 
WR_E_XMLURIDECLARATION 
WR_E_XMLNSURIDECLARATION 
WR_E_NAMESPACEUNDECLARED 
WR_E_INVALIDXMLSPACE 
WR_E_INVALIDACTION 
WR_E_INVALIDSURROGATEPAIR 
XML_E_INVALID_DECIMAL 
XML_E_INVALID_HEXIDECIMAL 
XML_E_INVALID_UNICODE 
XML_E_INVALIDENCODING 

Definition at line 138 of file xmllite.idl.

139 {
140  MX_E_MX = 0xc00cee00,
145  WC_E_WC = 0xc00cee20,
149  WC_E_QUOTE,
150  WC_E_EQUAL,
153  WC_E_DIGIT,
158  WC_E_SYNTAX,
159  WC_E_CDSECT,
160  WC_E_COMMENT,
167  WC_E_NDATA,
168  WC_E_PUBLIC,
169  WC_E_SYSTEM,
170  WC_E_NAME,
177  WC_E_XMLDECL,
178  WC_E_ENCNAME,
187  WC_E_PI,
194  NC_E_NC = 0xc00cee60,
205  SC_E_SC = 0xc00cee80,
208  WR_E_WR = 0xc00cef00,
221  XML_E_INVALID_DECIMAL = 0xc00ce01d,
224  XML_E_INVALIDENCODING = 0xc00ce06e
225 } XmlError;
XmlError
Definition: xmllite.idl:138

◆ XmlNodeType

Enumerator
XmlNodeType_None 
XmlNodeType_Element 
XmlNodeType_Attribute 
XmlNodeType_Text 
XmlNodeType_CDATA 
XmlNodeType_ProcessingInstruction 
XmlNodeType_Comment 
XmlNodeType_DocumentType 
XmlNodeType_Whitespace 
XmlNodeType_EndElement 
XmlNodeType_XmlDeclaration 
_XmlNodeType_Last 

Definition at line 23 of file xmllite.idl.

◆ XmlReaderProperty

Enumerator
XmlReaderProperty_MultiLanguage 
XmlReaderProperty_ConformanceLevel 
XmlReaderProperty_RandomAccess 
XmlReaderProperty_XmlResolver 
XmlReaderProperty_DtdProcessing 
XmlReaderProperty_ReadState 
XmlReaderProperty_MaxElementDepth 
XmlReaderProperty_MaxEntityExpansion 
_XmlReaderProperty_Last 

Definition at line 124 of file xmllite.idl.

◆ XmlReadState

Enumerator
XmlReadState_Initial 
XmlReadState_Interactive 
XmlReadState_Error 
XmlReadState_EndOfFile 
XmlReadState_Closed 

Definition at line 97 of file xmllite.idl.

◆ XmlStandalone

Enumerator
XmlStandalone_Omit 
XmlStandalone_Yes 
XmlStandalone_No 
_XmlStandalone_Last 

Definition at line 235 of file xmllite.idl.

◆ XmlWriterProperty

Enumerator
XmlWriterProperty_MultiLanguage 
XmlWriterProperty_Indent 
XmlWriterProperty_ByteOrderMark 
XmlWriterProperty_OmitXmlDeclaration 
XmlWriterProperty_ConformanceLevel 
_XmlWriterProperty_Last 

Definition at line 243 of file xmllite.idl.

Function Documentation

◆ CreateXmlReader()

STDAPI CreateXmlReader ( REFIID  riid,
void **  ppvObject,
IMalloc pMalloc 
)

Definition at line 3653 of file reader.c.

3654 {
3655  xmlreader *reader;
3656  HRESULT hr;
3657  int i;
3658 
3659  TRACE("(%s, %p, %p)\n", wine_dbgstr_guid(riid), obj, imalloc);
3660 
3661  if (imalloc)
3662  reader = IMalloc_Alloc(imalloc, sizeof(*reader));
3663  else
3664  reader = heap_alloc(sizeof(*reader));
3665  if (!reader)
3666  return E_OUTOFMEMORY;
3667 
3668  memset(reader, 0, sizeof(*reader));
3669  reader->IXmlReader_iface.lpVtbl = &xmlreader_vtbl;
3670  reader->ref = 1;
3671  reader->state = XmlReadState_Closed;
3672  reader->instate = XmlReadInState_Initial;
3673  reader->resumestate = XmlReadResumeState_Initial;
3674  reader->dtdmode = DtdProcessing_Prohibit;
3675  reader->imalloc = imalloc;
3676  if (imalloc) IMalloc_AddRef(imalloc);
3677  reader->nodetype = XmlNodeType_None;
3678  list_init(&reader->attrs);
3679  list_init(&reader->nsdef);
3680  list_init(&reader->ns);
3681  list_init(&reader->elements);
3682  reader->max_depth = 256;
3683 
3684  reader->chunk_read_off = 0;
3685  for (i = 0; i < StringValue_Last; i++)
3686  reader->strvalues[i] = strval_empty;
3687 
3688  hr = IXmlReader_QueryInterface(&reader->IXmlReader_iface, riid, obj);
3689  IXmlReader_Release(&reader->IXmlReader_iface);
3690 
3691  TRACE("returning iface %p, hr %#x\n", *obj, hr);
3692 
3693  return hr;
3694 }
static const struct IXmlReaderVtbl xmlreader_vtbl
Definition: reader.c:3563
static const strval strval_empty
Definition: reader.c:229
HRESULT hr
Definition: shlfolder.c:183
REFIID riid
Definition: precomp.h:44
const char * wine_dbgstr_guid(const GUID *guid)
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
#define TRACE(s)
Definition: solgame.cpp:4
LONG HRESULT
Definition: typedefs.h:78
Definition: reader.h:83
__WINE_SERVER_LIST_INLINE void list_init(struct list *list)
Definition: list.h:149
#define memset(x, y, z)
Definition: compat.h:39

Referenced by test_attribute_by_name(), test_encoding_detection(), test_endoffile(), test_isemptyelement(), test_max_element_depth(), test_namespaceuri(), test_prefix(), test_read_attribute(), test_read_cdata(), test_read_charref(), test_read_comment(), test_read_element(), test_read_full(), test_read_pending(), test_read_pi(), test_read_public_dtd(), test_read_system_dtd(), test_read_text(), test_read_xmldeclaration(), test_reader_create(), test_reader_position(), test_reader_properties(), test_reader_state(), test_readerinput(), test_readvaluechunk(), and test_string_pointers().

◆ CreateXmlReaderInputWithEncodingName()

STDAPI CreateXmlReaderInputWithEncodingName ( IUnknown stream,
IMalloc pMalloc,
 
)

◆ CreateXmlWriter()

STDAPI CreateXmlWriter ( REFIID  riid,
void **  ppvObject,
IMalloc pMalloc 
)

Definition at line 1897 of file writer.c.

1898 {
1899  xmlwriter *writer;
1900  HRESULT hr;
1901 
1902  TRACE("(%s, %p, %p)\n", wine_dbgstr_guid(riid), obj, imalloc);
1903 
1904  if (imalloc)
1905  writer = IMalloc_Alloc(imalloc, sizeof(*writer));
1906  else
1907  writer = heap_alloc(sizeof(*writer));
1908  if (!writer)
1909  return E_OUTOFMEMORY;
1910 
1911  memset(writer, 0, sizeof(*writer));
1912 
1913  writer->IXmlWriter_iface.lpVtbl = &xmlwriter_vtbl;
1914  writer->ref = 1;
1915  writer->imalloc = imalloc;
1916  if (imalloc) IMalloc_AddRef(imalloc);
1917  writer->bom = TRUE;
1919  writer->state = XmlWriterState_Initial;
1920  list_init(&writer->elements);
1921 
1922  hr = IXmlWriter_QueryInterface(&writer->IXmlWriter_iface, riid, obj);
1923  IXmlWriter_Release(&writer->IXmlWriter_iface);
1924 
1925  TRACE("returning iface %p, hr %#x\n", *obj, hr);
1926 
1927  return hr;
1928 }
#define TRUE
Definition: types.h:120
HRESULT hr
Definition: shlfolder.c:183
BOOL bom
Definition: writer.c:112
REFIID riid
Definition: precomp.h:44
const char * wine_dbgstr_guid(const GUID *guid)
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
XmlWriterState state
Definition: writer.c:115
IMalloc * imalloc
Definition: writer.c:108
#define TRACE(s)
Definition: solgame.cpp:4
LONG HRESULT
Definition: typedefs.h:78
struct list elements
Definition: writer.c:116
static const struct IXmlWriterVtbl xmlwriter_vtbl
Definition: writer.c:1801
__WINE_SERVER_LIST_INLINE void list_init(struct list *list)
Definition: list.h:149
LONG ref
Definition: writer.c:107
XmlConformanceLevel conformance
Definition: writer.c:114
#define memset(x, y, z)
Definition: compat.h:39
IXmlWriter IXmlWriter_iface
Definition: writer.c:106

Referenced by test_bom(), test_flush(), test_indentation(), test_omitxmldeclaration(), test_WriteAttributeString(), test_WriteCData(), test_WriteCharEntity(), test_WriteComment(), test_WriteDocType(), test_WriteElementString(), test_writeenddocument(), test_WriteEndElement(), test_WriteFullEndElement(), test_writer_create(), test_writer_state(), test_WriteRaw(), test_writeroutput(), test_writestartdocument(), test_WriteStartElement(), and test_WriteString().

◆ CreateXmlWriterOutputWithEncodingCodePage()

STDAPI CreateXmlWriterOutputWithEncodingCodePage ( IUnknown stream,
IMalloc pMalloc,
 
)

◆ CreateXmlWriterOutputWithEncodingName()

STDAPI CreateXmlWriterOutputWithEncodingName ( IUnknown stream,
IMalloc pMalloc,
 
)