replicode
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
xml_parser.h File Reference
#include <stdlib.h>
#include <wchar.h>
Include dependency graph for xml_parser.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  core::XMLResults
 
struct  core::XMLClear
 
struct  core::XMLAttribute
 
struct  core::XMLNode
 
struct  core::XMLNode::XMLNodeDataTag
 
struct  core::XMLNodeContents
 
struct  core::ToXMLStringTool
 
struct  core::XMLParserBase64Tool
 

Namespaces

 core
 

Macros

#define _USE_XMLPARSER_DLL
 
#define XMLDLLENTRY   __declspec(dllimport)
 
#define XMLDLLENTRY
 
#define _X(c)   c
 
#define XMLCSTR   const char *
 
#define XMLSTR   char *
 
#define XMLCHAR   char
 
#define FALSE   0
 
#define TRUE   1
 

Typedefs

typedef enum core::XMLError core::XMLError
 
typedef enum core::XMLElementType core::XMLElementType
 
typedef struct core::XMLResults core::XMLResults
 
typedef struct core::XMLClear core::XMLClear
 
typedef struct core::XMLAttribute core::XMLAttribute
 
typedef struct XMLDLLENTRY core::XMLNode core::XMLNode
 
typedef struct core::XMLNodeContents core::XMLNodeContents
 
typedef struct XMLDLLENTRY core::ToXMLStringTool core::ToXMLStringTool
 
typedef struct XMLDLLENTRY core::XMLParserBase64Tool core::XMLParserBase64Tool
 

Enumerations

enum  core::XMLError {
  core::eXMLErrorNone = 0, core::eXMLErrorMissingEndTag, core::eXMLErrorNoXMLTagFound, core::eXMLErrorEmpty,
  core::eXMLErrorMissingTagName, core::eXMLErrorMissingEndTagName, core::eXMLErrorUnmatchedEndTag, core::eXMLErrorUnmatchedEndClearTag,
  core::eXMLErrorUnexpectedToken, core::eXMLErrorNoElements, core::eXMLErrorFileNotFound, core::eXMLErrorFirstTagNotFound,
  core::eXMLErrorUnknownCharacterEntity, core::eXMLErrorCharConversionError, core::eXMLErrorCannotOpenWriteFile, core::eXMLErrorCannotWriteFile,
  core::eXMLErrorBase64DataSizeIsNotMultipleOf4, core::eXMLErrorBase64DecodeIllegalCharacter, core::eXMLErrorBase64DecodeTruncatedData, core::eXMLErrorBase64DecodeBufferTooSmall
}
 
enum  core::XMLElementType {
  core::eNodeChild = 0, core::eNodeAttribute = 1, core::eNodeText = 2, core::eNodeClear = 3,
  core::eNodeNULL = 4
}
 

Functions

void core::freeXMLString (XMLSTR t)
 
XMLSTR core::stringDup (XMLCSTR lpszData, int cbData)
 

Macro Definition Documentation

#define _USE_XMLPARSER_DLL

XML.c - implementation file for basic XML parser written in ANSI C++ for portability. It works by using recursion and a node tree for breaking down the elements of an XML document.

Version
V2.31
Author
Frank Vanden Berghen

BSD license: Copyright (c) 2002, Frank Vanden Berghen All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright
  notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
  notice, this list of conditions and the following disclaimer in the
  documentation and/or other materials provided with the distribution.
* Neither the name of the Frank Vanden Berghen nor the
  names of its contributors may be used to endorse or promote products
  derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#define _X (   c)    c
#define FALSE   0
#define TRUE   1
#define XMLCHAR   char
#define XMLCSTR   const char *
#define XMLDLLENTRY   __declspec(dllimport)
#define XMLDLLENTRY
#define XMLSTR   char *