ReactOS  0.4.14-dev-297-g23e575c
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 3651 of file reader.c.

3652 {
3653  xmlreader *reader;
3654  HRESULT hr;
3655  int i;
3656 
3657  TRACE("(%s, %p, %p)\n", wine_dbgstr_guid(riid), obj, imalloc);
3658 
3659  if (imalloc)
3660  reader = IMalloc_Alloc(imalloc, sizeof(*reader));
3661  else
3662  reader = heap_alloc(sizeof(*reader));
3663  if (!reader)
3664  return E_OUTOFMEMORY;
3665 
3666  memset(reader, 0, sizeof(*reader));
3667  reader->IXmlReader_iface.lpVtbl = &xmlreader_vtbl;
3668  reader->ref = 1;
3669  reader->state = XmlReadState_Closed;
3670  reader->instate = XmlReadInState_Initial;
3671  reader->resumestate = XmlReadResumeState_Initial;
3672  reader->dtdmode = DtdProcessing_Prohibit;
3673  reader->imalloc = imalloc;
3674  if (imalloc) IMalloc_AddRef(imalloc);
3675  reader->nodetype = XmlNodeType_None;
3676  list_init(&reader->attrs);
3677  list_init(&reader->nsdef);
3678  list_init(&reader->ns);
3679  list_init(&reader->elements);
3680  reader->max_depth = 256;
3681 
3682  reader->chunk_read_off = 0;
3683  for (i = 0; i < StringValue_Last; i++)
3684  reader->strvalues[i] = strval_empty;
3685 
3686  hr = IXmlReader_QueryInterface(&reader->IXmlReader_iface, riid, obj);
3687  IXmlReader_Release(&reader->IXmlReader_iface);
3688 
3689  TRACE("returning iface %p, hr %#x\n", *obj, hr);
3690 
3691  return hr;
3692 }
static const struct IXmlReaderVtbl xmlreader_vtbl
Definition: reader.c:3561
static const strval strval_empty
Definition: reader.c:227
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:77
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 1444 of file writer.c.

1445 {
1446  xmlwriter *writer;
1447  HRESULT hr;
1448 
1449  TRACE("(%s, %p, %p)\n", wine_dbgstr_guid(riid), obj, imalloc);
1450 
1451  if (imalloc)
1452  writer = IMalloc_Alloc(imalloc, sizeof(*writer));
1453  else
1454  writer = heap_alloc(sizeof(*writer));
1455  if(!writer) return E_OUTOFMEMORY;
1456 
1457  writer->IXmlWriter_iface.lpVtbl = &xmlwriter_vtbl;
1458  writer->ref = 1;
1459  writer->imalloc = imalloc;
1460  if (imalloc) IMalloc_AddRef(imalloc);
1461  writer->output = NULL;
1462  writer->indent_level = 0;
1463  writer->indent = FALSE;
1464  writer->bom = TRUE;
1465  writer->omitxmldecl = FALSE;
1467  writer->state = XmlWriterState_Initial;
1468  writer->bomwritten = FALSE;
1469  writer->starttagopen = FALSE;
1470  list_init(&writer->elements);
1471 
1472  hr = IXmlWriter_QueryInterface(&writer->IXmlWriter_iface, riid, obj);
1473  IXmlWriter_Release(&writer->IXmlWriter_iface);
1474 
1475  TRACE("returning iface %p, hr %#x\n", *obj, hr);
1476 
1477  return hr;
1478 }
#define TRUE
Definition: types.h:120
HRESULT hr
Definition: shlfolder.c:183
BOOL bom
Definition: writer.c:97
REFIID riid
Definition: precomp.h:44
const char * wine_dbgstr_guid(const GUID *guid)
BOOL omitxmldecl
Definition: writer.c:98
static void * heap_alloc(size_t len)
Definition: appwiz.h:65
#define E_OUTOFMEMORY
Definition: ddrawi.h:100
XmlWriterState state
Definition: writer.c:100
smooth NULL
Definition: ftsmooth.c:416
xmlwriteroutput * output
Definition: writer.c:94
IMalloc * imalloc
Definition: writer.c:93
#define TRACE(s)
Definition: solgame.cpp:4
LONG HRESULT
Definition: typedefs.h:77
BOOL indent
Definition: writer.c:96
struct list elements
Definition: writer.c:103
BOOL bomwritten
Definition: writer.c:101
static const struct IXmlWriterVtbl xmlwriter_vtbl
Definition: writer.c:1348
__WINE_SERVER_LIST_INLINE void list_init(struct list *list)
Definition: list.h:149
unsigned int indent_level
Definition: writer.c:95
LONG ref
Definition: writer.c:92
XmlConformanceLevel conformance
Definition: writer.c:99
BOOL starttagopen
Definition: writer.c:102
IXmlWriter IXmlWriter_iface
Definition: writer.c:91

Referenced by test_bom(), test_flush(), test_indentation(), test_omitxmldeclaration(), test_WriteAttributeString(), test_WriteCData(), test_WriteCharEntity(), test_WriteComment(), 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,
 
)