Classes | Macros | Variables
qxml.cpp File Reference
#include "qxml.h"
#include "qtextcodec.h"
#include "qbuffer.h"

Go to the source code of this file.

Classes

class  QXmlNamespaceSupportPrivate
 
class  QXmlAttributesPrivate
 
class  QXmlInputSourcePrivate
 
class  QXmlParseExceptionPrivate
 
class  QXmlLocatorPrivate
 
class  QXmlDefaultHandlerPrivate
 
class  QXmlSimpleReaderPrivate
 
struct  QXmlSimpleReaderPrivate::ExternParameterEntity
 
struct  QXmlSimpleReaderPrivate::ExternEntity
 

Macros

#define QT_XML_CPP
 
#define XMLERR_OK   "no error occured"
 
#define XMLERR_TAGMISMATCH   "tag mismatch"
 
#define XMLERR_UNEXPECTEDEOF   "unexpected end of file"
 
#define XMLERR_FINISHEDPARSINGWHILENOTEOF   "parsing is finished but end of file is not reached"
 
#define XMLERR_LETTEREXPECTED   "letter is expected"
 
#define XMLERR_ERRORPARSINGELEMENT   "error while parsing element"
 
#define XMLERR_ERRORPARSINGPROLOG   "error while parsing prolog"
 
#define XMLERR_ERRORPARSINGMAINELEMENT   "error while parsing main element"
 
#define XMLERR_ERRORPARSINGCONTENT   "error while parsing content"
 
#define XMLERR_ERRORPARSINGNAME   "error while parsing name"
 
#define XMLERR_ERRORPARSINGNMTOKEN   "error while parsing Nmtoken"
 
#define XMLERR_ERRORPARSINGATTRIBUTE   "error while parsing attribute"
 
#define XMLERR_ERRORPARSINGMISC   "error while parsing misc"
 
#define XMLERR_ERRORPARSINGCHOICE   "error while parsing choice or seq"
 
#define XMLERR_ERRORBYCONSUMER   "error triggered by consumer"
 
#define XMLERR_UNEXPECTEDCHARACTER   "unexpected character"
 
#define XMLERR_EQUALSIGNEXPECTED   "expected '=' but not found"
 
#define XMLERR_QUOTATIONEXPECTED   "expected \" or ' but not found"
 
#define XMLERR_ERRORPARSINGREFERENCE   "error while parsing reference"
 
#define XMLERR_ERRORPARSINGPI   "error while parsing processing instruction"
 
#define XMLERR_ERRORPARSINGATTLISTDECL   "error while parsing attribute list declaration"
 
#define XMLERR_ERRORPARSINGATTTYPE   "error while parsing attribute type declaration"
 
#define XMLERR_ERRORPARSINGATTVALUE   "error while parsing attribute value declaration"
 
#define XMLERR_ERRORPARSINGELEMENTDECL   "error while parsing element declaration"
 
#define XMLERR_ERRORPARSINGENTITYDECL   "error while parsing entity declaration"
 
#define XMLERR_ERRORPARSINGNOTATIONDECL   "error while parsing notation declaration"
 
#define XMLERR_ERRORPARSINGEXTERNALID   "error while parsing external id"
 
#define XMLERR_ERRORPARSINGCOMMENT   "error while parsing comment"
 
#define XMLERR_ERRORPARSINGENTITYVALUE   "error while parsing entity value declaration"
 
#define XMLERR_CDSECTHEADEREXPECTED   "expected the header for a cdata section"
 
#define XMLERR_MORETHANONEDOCTYPE   "more than one document type definition"
 
#define XMLERR_ERRORPARSINGDOCTYPE   "error while parsing document type definition"
 
#define XMLERR_INVALIDNAMEFORPI   "invalid name for processing instruction"
 
#define XMLERR_VERSIONEXPECTED   "version expected while reading the XML declaration"
 
#define XMLERR_EDECLORSDDECLEXPECTED   "EDecl or SDDecl expected while reading the XML declaration"
 
#define XMLERR_SDDECLEXPECTED   "SDDecl expected while reading the XML declaration"
 
#define XMLERR_WRONGVALUEFORSDECL   "wrong value for standalone declaration"
 
#define XMLERR_UNPARSEDENTITYREFERENCE   "unparsed entity reference in wrong context"
 
#define XMLERR_INTERNALGENERALENTITYINDTD   "internal general entity reference not allowed in DTD"
 
#define XMLERR_EXTERNALGENERALENTITYINDTD   "external parsed general entity reference not allowed in DTD"
 
#define XMLERR_EXTERNALGENERALENTITYINAV   "external parsed general entity reference not allowed in attribute value"
 

Variables

static const signed char cltWS = 0
 
static const signed char cltPer = 1
 
static const signed char cltAmp = 2
 
static const signed char cltGt = 3
 
static const signed char cltLt = 4
 
static const signed char cltSlash = 5
 
static const signed char cltQm = 6
 
static const signed char cltEm = 7
 
static const signed char cltDash = 8
 
static const signed char cltCB = 9
 
static const signed char cltOB = 10
 
static const signed char cltEq = 11
 
static const signed char cltDq = 12
 
static const signed char cltSq = 13
 
static const signed char cltUnknown = 14
 
static const signed char charLookupTable [256]
 

Macro Definition Documentation

#define QT_XML_CPP

Definition at line 38 of file qxml.cpp.

#define XMLERR_CDSECTHEADEREXPECTED   "expected the header for a cdata section"

Definition at line 76 of file qxml.cpp.

#define XMLERR_EDECLORSDDECLEXPECTED   "EDecl or SDDecl expected while reading the XML declaration"

Definition at line 81 of file qxml.cpp.

#define XMLERR_EQUALSIGNEXPECTED   "expected '=' but not found"

Definition at line 63 of file qxml.cpp.

#define XMLERR_ERRORBYCONSUMER   "error triggered by consumer"

Definition at line 61 of file qxml.cpp.

#define XMLERR_ERRORPARSINGATTLISTDECL   "error while parsing attribute list declaration"

Definition at line 67 of file qxml.cpp.

#define XMLERR_ERRORPARSINGATTRIBUTE   "error while parsing attribute"

Definition at line 58 of file qxml.cpp.

#define XMLERR_ERRORPARSINGATTTYPE   "error while parsing attribute type declaration"

Definition at line 68 of file qxml.cpp.

#define XMLERR_ERRORPARSINGATTVALUE   "error while parsing attribute value declaration"

Definition at line 69 of file qxml.cpp.

#define XMLERR_ERRORPARSINGCHOICE   "error while parsing choice or seq"

Definition at line 60 of file qxml.cpp.

#define XMLERR_ERRORPARSINGCOMMENT   "error while parsing comment"

Definition at line 74 of file qxml.cpp.

#define XMLERR_ERRORPARSINGCONTENT   "error while parsing content"

Definition at line 55 of file qxml.cpp.

#define XMLERR_ERRORPARSINGDOCTYPE   "error while parsing document type definition"

Definition at line 78 of file qxml.cpp.

#define XMLERR_ERRORPARSINGELEMENT   "error while parsing element"

Definition at line 52 of file qxml.cpp.

#define XMLERR_ERRORPARSINGELEMENTDECL   "error while parsing element declaration"

Definition at line 70 of file qxml.cpp.

#define XMLERR_ERRORPARSINGENTITYDECL   "error while parsing entity declaration"

Definition at line 71 of file qxml.cpp.

#define XMLERR_ERRORPARSINGENTITYVALUE   "error while parsing entity value declaration"

Definition at line 75 of file qxml.cpp.

#define XMLERR_ERRORPARSINGEXTERNALID   "error while parsing external id"

Definition at line 73 of file qxml.cpp.

#define XMLERR_ERRORPARSINGMAINELEMENT   "error while parsing main element"

Definition at line 54 of file qxml.cpp.

#define XMLERR_ERRORPARSINGMISC   "error while parsing misc"

Definition at line 59 of file qxml.cpp.

#define XMLERR_ERRORPARSINGNAME   "error while parsing name"

Definition at line 56 of file qxml.cpp.

#define XMLERR_ERRORPARSINGNMTOKEN   "error while parsing Nmtoken"

Definition at line 57 of file qxml.cpp.

#define XMLERR_ERRORPARSINGNOTATIONDECL   "error while parsing notation declaration"

Definition at line 72 of file qxml.cpp.

#define XMLERR_ERRORPARSINGPI   "error while parsing processing instruction"

Definition at line 66 of file qxml.cpp.

#define XMLERR_ERRORPARSINGPROLOG   "error while parsing prolog"

Definition at line 53 of file qxml.cpp.

#define XMLERR_ERRORPARSINGREFERENCE   "error while parsing reference"

Definition at line 65 of file qxml.cpp.

#define XMLERR_EXTERNALGENERALENTITYINAV   "external parsed general entity reference not allowed in attribute value"

Definition at line 87 of file qxml.cpp.

#define XMLERR_EXTERNALGENERALENTITYINDTD   "external parsed general entity reference not allowed in DTD"

Definition at line 86 of file qxml.cpp.

#define XMLERR_FINISHEDPARSINGWHILENOTEOF   "parsing is finished but end of file is not reached"

Definition at line 50 of file qxml.cpp.

#define XMLERR_INTERNALGENERALENTITYINDTD   "internal general entity reference not allowed in DTD"

Definition at line 85 of file qxml.cpp.

#define XMLERR_INVALIDNAMEFORPI   "invalid name for processing instruction"

Definition at line 79 of file qxml.cpp.

#define XMLERR_LETTEREXPECTED   "letter is expected"

Definition at line 51 of file qxml.cpp.

#define XMLERR_MORETHANONEDOCTYPE   "more than one document type definition"

Definition at line 77 of file qxml.cpp.

#define XMLERR_OK   "no error occured"

Definition at line 47 of file qxml.cpp.

#define XMLERR_QUOTATIONEXPECTED   "expected \" or ' but not found"

Definition at line 64 of file qxml.cpp.

#define XMLERR_SDDECLEXPECTED   "SDDecl expected while reading the XML declaration"

Definition at line 82 of file qxml.cpp.

#define XMLERR_TAGMISMATCH   "tag mismatch"

Definition at line 48 of file qxml.cpp.

#define XMLERR_UNEXPECTEDCHARACTER   "unexpected character"

Definition at line 62 of file qxml.cpp.

#define XMLERR_UNEXPECTEDEOF   "unexpected end of file"

Definition at line 49 of file qxml.cpp.

#define XMLERR_UNPARSEDENTITYREFERENCE   "unparsed entity reference in wrong context"

Definition at line 84 of file qxml.cpp.

#define XMLERR_VERSIONEXPECTED   "version expected while reading the XML declaration"

Definition at line 80 of file qxml.cpp.

#define XMLERR_WRONGVALUEFORSDECL   "wrong value for standalone declaration"

Definition at line 83 of file qxml.cpp.

Variable Documentation

const signed char charLookupTable[256]
static

Definition at line 108 of file qxml.cpp.

const signed char cltAmp = 2
static

Definition at line 93 of file qxml.cpp.

const signed char cltCB = 9
static

Definition at line 100 of file qxml.cpp.

const signed char cltDash = 8
static

Definition at line 99 of file qxml.cpp.

const signed char cltDq = 12
static

Definition at line 103 of file qxml.cpp.

const signed char cltEm = 7
static

Definition at line 98 of file qxml.cpp.

const signed char cltEq = 11
static

Definition at line 102 of file qxml.cpp.

const signed char cltGt = 3
static

Definition at line 94 of file qxml.cpp.

const signed char cltLt = 4
static

Definition at line 95 of file qxml.cpp.

const signed char cltOB = 10
static

Definition at line 101 of file qxml.cpp.

const signed char cltPer = 1
static

Definition at line 92 of file qxml.cpp.

const signed char cltQm = 6
static

Definition at line 97 of file qxml.cpp.

const signed char cltSlash = 5
static

Definition at line 96 of file qxml.cpp.

const signed char cltSq = 13
static

Definition at line 104 of file qxml.cpp.

const signed char cltUnknown = 14
static

Definition at line 105 of file qxml.cpp.

const signed char cltWS = 0
static

Definition at line 91 of file qxml.cpp.