ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

xmllint.c File Reference
#include "libxml.h"
#include <string.h>
#include <stdarg.h>
#include <assert.h>
#include <time.h>
#include <sys/timeb.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <libxml/xmlmemory.h>
#include <libxml/parser.h>
#include <libxml/parserInternals.h>
#include <libxml/HTMLparser.h>
#include <libxml/HTMLtree.h>
#include <libxml/tree.h>
#include <libxml/xpath.h>
#include <libxml/debugXML.h>
#include <libxml/xmlerror.h>
#include <libxml/globals.h>
#include <libxml/xmlreader.h>

Go to the source code of this file.

Defines

#define XML_XML_DEFAULT_CATALOG   "file:///etc/xml/catalog"
#define MAX_PATHS   64
#define PATH_SEPARATOR   ':'
#define CLOCKS_PER_SEC   100

Enumerations

enum  xmllintReturnCode {
  XMLLINT_RETURN_OK = 0, XMLLINT_ERR_UNCLASS = 1, XMLLINT_ERR_DTD = 2, XMLLINT_ERR_VALID = 3,
  XMLLINT_ERR_RDFILE = 4, XMLLINT_ERR_SCHEMACOMP = 5, XMLLINT_ERR_OUT = 6, XMLLINT_ERR_SCHEMAPAT = 7,
  XMLLINT_ERR_RDREGIS = 8, XMLLINT_ERR_MEM = 9, XMLLINT_ERR_XPATH = 10
}

Functions

static void parsePath (const xmlChar *path)
static xmlParserInputPtr xmllintExternalEntityLoader (const char *URL, const char *ID, xmlParserCtxtPtr ctxt)
static void OOM (void)
static void myFreeFunc (void *mem)
static voidmyMallocFunc (size_t size)
static voidmyReallocFunc (void *mem, size_t size)
static charmyStrdupFunc (const char *str)
static void startTimer (void)
static void XMLCDECL endTimer (const char *fmt,...)
static void xmlHTMLEncodeSend (void)
static void xmlHTMLPrintFileInfo (xmlParserInputPtr input)
static void xmlHTMLPrintFileContext (xmlParserInputPtr input)
static void XMLCDECL xmlHTMLError (void *ctx, const char *msg,...)
static void XMLCDECL xmlHTMLWarning (void *ctx, const char *msg,...)
static void XMLCDECL xmlHTMLValidityError (void *ctx, const char *msg,...)
static void XMLCDECL xmlHTMLValidityWarning (void *ctx, const char *msg,...)
static int myRead (FILE *f, char *buf, int len)
static void myClose (FILE *f)
static int isStandaloneDebug (void *ctx ATTRIBUTE_UNUSED)
static int hasInternalSubsetDebug (void *ctx ATTRIBUTE_UNUSED)
static int hasExternalSubsetDebug (void *ctx ATTRIBUTE_UNUSED)
static void internalSubsetDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
static void externalSubsetDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
static xmlParserInputPtr resolveEntityDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *publicId, const xmlChar *systemId)
: The entity name

getParameterEntityDebug: : An XML parser context

Get a parameter entity by name

Returns the xmlParserInputPtr

static xmlEntityPtr getEntityDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *name)
static xmlEntityPtr getParameterEntityDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *name)
: the attribute name

attributeDeclDebug: : An XML parser context

: the attribute type

An attribute definition has been parsed

static void attributeDeclDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *elem, const xmlChar *name, int type, int def, const xmlChar *defaultValue, xmlEnumerationPtr tree)
: The name of the notation

notationDeclDebug: : An XML parser context

: The public ID of the entity : The system ID of the entity

What to do when a notation declaration has been parsed.

static void notationDeclDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId)
: The name of the entity

unparsedEntityDeclDebug: : An XML parser context

: The public ID of the entity : The system ID of the entity : the name of the notation

What to do when an unparsed entity declaration is parsed

static void unparsedEntityDeclDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, const xmlChar *publicId, const xmlChar *systemId, const xmlChar *notationName)
static void setDocumentLocatorDebug (void *ctx ATTRIBUTE_UNUSED, xmlSAXLocatorPtr loc ATTRIBUTE_UNUSED)
static void startDocumentDebug (void *ctx ATTRIBUTE_UNUSED)
static void endDocumentDebug (void *ctx ATTRIBUTE_UNUSED)

Variables

static int debug = 0
static int maxmem = 0
static int recovery = 0
static int noent = 0
static int noblanks = 0
static int noout = 0
static int nowrap = 0
static int repeat = 0
static int insert = 0
static int htmlout = 0
static int testIO = 0
static charencoding = NULL
static int dtdattrs = 0
static int loaddtd = 0
static xmllintReturnCode progresult = XMLLINT_RETURN_OK
static int timing = 0
static int generate = 0
static int dropdtd = 0
static int chkregister = 0
static int nbregister = 0
static int options = XML_PARSE_COMPACT
static int sax = 0
static int oldxml10 = 0
static xmlCharpaths [MAX_PATHS+1]
static int nbpaths = 0
static int load_trace = 0
static xmlExternalEntityLoader defaultEntityLoader = NULL
static clock_t begin
static clock_t end
static char buffer [50000]
static xmlSAXHandler emptySAXHandlerStruct
static xmlSAXHandlerPtr emptySAXHandler = &emptySAXHandlerStruct
static int callbacks

: The entity name

referenceDebug: : An XML parser context

called when an entity reference is detected.

xmlSAXHandlerPtr debugSAXHandler = &debugSAXHandlerStruct
static xmlSAXHandler debugSAXHandlerStruct
static void entityDeclDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, int type, const xmlChar *publicId, const xmlChar *systemId, xmlChar *content)
static void referenceDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *name)
static void ignorableWhitespaceDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *ch, int len)
static void processingInstructionDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *target, const xmlChar *data)
static void cdataBlockDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *value, int len)
static void commentDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *value)
static void XMLCDECL warningDebug (void *ctx ATTRIBUTE_UNUSED, const char *msg,...)
static void XMLCDECL errorDebug (void *ctx ATTRIBUTE_UNUSED, const char *msg,...)
static void XMLCDECL fatalErrorDebug (void *ctx ATTRIBUTE_UNUSED, const char *msg,...)

: The element name

endElementDebug: : An XML parser context

called when the end of an element has been detected.

static xmlSAXHandler debugSAX2HandlerStruct
static xmlSAXHandlerPtr debugSAX2Handler = &debugSAX2HandlerStruct
static void elementDeclDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, int type, xmlElementContentPtr content ATTRIBUTE_UNUSED)
static void startElementDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, const xmlChar **atts)
static void endElementDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *name)
static void charactersDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *ch, int len)
static void startElementNsDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *localname, const xmlChar *prefix, const xmlChar *URI, int nb_namespaces, const xmlChar **namespaces, int nb_attributes, int nb_defaulted, const xmlChar **attributes)
static void endElementNsDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *localname, const xmlChar *prefix, const xmlChar *URI)
static void testSAX (const char *filename)
static void parseAndPrintFile (char *filename, xmlParserCtxtPtr rectxt)
static void showVersion (const char *name)
static void usage (const char *name)
static void registerNode (xmlNodePtr node)
static void deregisterNode (xmlNodePtr node)
int main (int argc, char **argv)

Generated on Sat May 26 2012 06:02:08 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.