CXmlParser Class Reference

class CXmlParser : public CBNFParser

Inherits from

Public Member Functions
~CXmlParser ()
void CommitL ()
void ContinueL ()
const CBNFNode * DTD ()
const HBufC * DTDUrl ()
TBool DataGathering ()
const HBufC * DocType ()
TInt ErrorCode ()
CXmlParser * NewL ( CAttributeLookupTable &)
void ProcessDataL ( HBufC8 &)
void ProcessDataL ( HBufC16 *)
void ResetL ( CXmlElement *)
void SetDTD ( CBNFNode *)
void SetDataGathering ( TBool )
Protected Member Functions
CXmlParser ( CAttributeLookupTable &)
TBool CharL ( CFragmentedString::TStringMatch &)
void CharRefReplacement ( TPtr &)
void ConstructL ()
void EolNormalization ( TPtr )
TBool FirstNameCharL ( CFragmentedString::TStringMatch &)
TBool LetterL ( CFragmentedString::TStringMatch &)
TBool NMoreNameCharL ( CFragmentedString::TStringMatch &)
CBNFNode & NewXmlRuleL ( CBNFNode *, const TDesC &, TXmlParserNodeTypes )
CBNFNode & NewXmlRuleL ( CBNFNode *, const TDesC &, TXmlParserNodeTypes , HBufC *, TRuleCallback *, TRuleCallback *)
TBool PerformRuleL ( CBNFNode &, CFragmentedString::TStringMatch &)
void PostAttrName ( CBNFParser &)
void PostAttributeL ( CBNFParser &)
void PostCDSectL ( CBNFParser &)
void PostCDStart ( CBNFParser &)
void PostCDataL ( CBNFParser &)
void PostCharDataL ( CBNFParser &)
void PostCharReferenceValue ( CBNFParser &)
void PostDTDidAndUrl ( CBNFParser &)
void PostDocRootName ( CBNFParser &)
void PostDoctypedecl ( CBNFParser &)
void PostETag ( CBNFParser &)
void PostEmptyElemClose ( CBNFParser &)
void PostEntityRefL ( CBNFParser &)
void PostNameL ( CBNFParser &)
void PostNodeNameL ( CBNFParser &)
void PostProlog ( CBNFParser &)
void PostPubidLiteralL ( CBNFParser &)
void PostPureAttValueL ( CBNFParser &)
void PostPureSystemLiteralL ( CBNFParser &)
void PostTagStartL ( CBNFParser &)
void PostVersionNumL ( CBNFParser &)
void PreAttribute ( CBNFParser &)
void PreExternalID ( CBNFParser &)
void ResetL ()
TBool SL ( CFragmentedString::TStringMatch &)
CBNFNode * TreeL ()
Inherited Functions
CBNFParser::AddComponentAttributeL(CBNFNode &,CBNFNodeAttributeType,TInt)
CBNFParser::AddRuleCallbackL(CBNFNode &,const TDesC *,TRuleCallback *)
CBNFParser::AndL(CBNFNode &,CFragmentedString::TStringMatch &)
CBNFParser::AttributeLUT()const
CBNFParser::CBNFParser(CAttributeLookupTable &)
CBNFParser::CurrentRule()
CBNFParser::DeleteMark()
CBNFParser::EndConditional(TParserNodeTypes,TBool)
CBNFParser::ExactL(CBNFNode &,CFragmentedString::TStringMatch &)
CBNFParser::ExecutePostRuleCallbackL(CBNFNode &)
CBNFParser::ExecutePreRuleCallbackL(CBNFNode &)
CBNFParser::MDataProviderObserverReserved1()
CBNFParser::MDataProviderObserverReserved2()
CBNFParser::Mark()
CBNFParser::MarkCallback(CBNFParser &)
CBNFParser::MarkedL()
CBNFParser::MarkedWithInitialTextL(const TDesC &)
CBNFParser::NMoreL(CBNFNode &,CFragmentedString::TStringMatch &)
CBNFParser::NewBNFL()
CBNFParser::NewComponentL(CBNFNode &,TParserNodeTypes,HBufC *,TRuleCallback *,TRuleCallback *)
CBNFParser::NewComponentL(CBNFNode &,TParserNodeTypes,const TDesC &)
CBNFParser::NewComponentL(CBNFNode *,CBNFNode &,const TDesC &)
CBNFParser::NewComponentL(CBNFNode *,const TDesC &)
CBNFParser::NewComponentL(TParserNodeTypes,HBufC *,TRuleCallback *,TRuleCallback *)
CBNFParser::NewComponentL(TParserNodeTypes,const TDesC &)
CBNFParser::NewRuleL(CBNFNode *,const TDesC &,TParserNodeTypes,HBufC *,TRuleCallback *,TRuleCallback *)
CBNFParser::NewRuleL(CBNFNode *,const TDesC &,TParserNodeTypes,const TDesC &,TRuleCallback *,TRuleCallback *)
CBNFParser::OptionalL(CBNFNode &,CFragmentedString::TStringMatch &)
CBNFParser::OptionalMatched()const
CBNFParser::OrL(CBNFNode &,CFragmentedString::TStringMatch &)
CBNFParser::ParseL()
CBNFParser::RangeL(CBNFNode &,CFragmentedString::TStringMatch &)
CBNFParser::ReferenceL(CBNFNode &,CFragmentedString::TStringMatch &)
CBNFParser::RuleMatched()const
CBNFParser::SelectL(CBNFNode &,CFragmentedString::TStringMatch &)
CBNFParser::SetAttributeLookupTable(CAttributeLookupTable &)
CBNFParser::SetBaseUriL(const TDesC *)
CBNFParser::SetDataExpected(TInt)
CBNFParser::SetDocumentTypeL(const TDesC &)
CBNFParser::SetDocumentTypeL(const TDesC &,const TDesC &)
CBNFParser::SetState(TParseState)
CBNFParser::SetStatus(TInt)
CBNFParser::StartConditional(TParserNodeTypes)
CBNFParser::State()const
CBNFParser::StringL()const
CBNFParser::Valid()const
CBNFParser::WithoutL(CBNFNode &,CFragmentedString::TStringMatch &)
CBNFParser::~CBNFParser()
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enum TSignals { EDTDDefinitionFound  = 1, ENoDTDDefined }
enum TXmlParserNodeTypes {
EFirstXmlParserNodeType  = ELastParserNodeType, EChar , ELetter , ES , EFirstNameChar , ENMoreNameChar , ELastXmlParserNodeType
}
Private Attributes
HBufC * iAttValue
HBufC * iAttrName
HBufC * iCData
CXmlElement * iCurrentNode
CBNFNode * iDTD
HBufC * iDTDUrl
TBool iDataGathering
HBufC * iDocRootName
HBufC * iDocType
TInt iErrorCode
HBufC * iName
HBufC * iPubidLiteral
CXmlElement * iRootNode
TBool iRootTagFound
HBufC * iSystemLiteral
HBufC * iXmlVersionString
Inherited Attributes
CBNFParser::iCurrentRule
CBNFParser::iLUT
CBNFParser::iMatched
CBNFParser::iMoreCount
CBNFParser::iMoreMaximum
CBNFParser::iMoreMinimum
CBNFParser::iOptionalMatched
CBNFParser::iParsing
CBNFParser::iPostRuleCallback
CBNFParser::iPreRuleCallback
CBNFParser::iRangeEnd
CBNFParser::iRangeStart
CBNFParser::iReferenceString
CBNFParser::iRuleStack
CBNFParser::iString
CBNFParser::iStringComplete
CBNFParser::iSubRule
CBNFParser::iSubRuleMatched
CBNFParser::iTree

Constructor & Destructor Documentation

CXmlParser(CAttributeLookupTable &)

CXmlParser ( CAttributeLookupTable & aALUT ) [protected]

Parameters

CAttributeLookupTable & aALUT

~CXmlParser()

~CXmlParser ( ) [virtual]

Member Functions Documentation

CharL(CFragmentedString::TStringMatch &)

TBool CharL ( CFragmentedString::TStringMatch & aMatched ) [protected]

Parameters

CFragmentedString::TStringMatch & aMatched

CharRefReplacement(TPtr &)

void CharRefReplacement ( TPtr & aString ) [protected]

Parameters

TPtr & aString

CommitL()

void CommitL ( )

ConstructL()

void ConstructL ( ) [protected]

ContinueL()

void ContinueL ( )

DTD()

const CBNFNode * DTD ( ) const [inline]

DTDUrl()

const HBufC * DTDUrl ( ) [inline]

DataGathering()

TBool DataGathering ( ) const [inline]

DocType()

const HBufC * DocType ( ) [inline]

EolNormalization(TPtr)

void EolNormalization ( TPtr aString ) [protected]

Parameters

TPtr aString

ErrorCode()

TInt ErrorCode ( ) [inline]

FirstNameCharL(CFragmentedString::TStringMatch &)

TBool FirstNameCharL ( CFragmentedString::TStringMatch & aMatched ) [protected]

Parameters

CFragmentedString::TStringMatch & aMatched

LetterL(CFragmentedString::TStringMatch &)

TBool LetterL ( CFragmentedString::TStringMatch & aMatched ) [protected]

Parameters

CFragmentedString::TStringMatch & aMatched

NMoreNameCharL(CFragmentedString::TStringMatch &)

TBool NMoreNameCharL ( CFragmentedString::TStringMatch & aMatched ) [protected]

Parameters

CFragmentedString::TStringMatch & aMatched

NewL(CAttributeLookupTable &)

CXmlParser * NewL ( CAttributeLookupTable & aAttributeLUT ) [static]

Parameters

CAttributeLookupTable & aAttributeLUT

NewXmlRuleL(CBNFNode *, const TDesC &, TXmlParserNodeTypes)

CBNFNode & NewXmlRuleL ( CBNFNode * aRootRule,
const TDesC & aRuleName,
TXmlParserNodeTypes aRuleType
) [protected]

Parameters

CBNFNode * aRootRule
const TDesC & aRuleName
TXmlParserNodeTypes aRuleType

NewXmlRuleL(CBNFNode *, const TDesC &, TXmlParserNodeTypes, HBufC *, TRuleCallback *, TRuleCallback *)

CBNFNode & NewXmlRuleL ( CBNFNode * aRootRule,
const TDesC & aRuleName,
TXmlParserNodeTypes aRuleType,
HBufC * aData,
TRuleCallback * aPreRule,
TRuleCallback * aPostRule
) [protected]

Parameters

CBNFNode * aRootRule
const TDesC & aRuleName
TXmlParserNodeTypes aRuleType
HBufC * aData
TRuleCallback * aPreRule
TRuleCallback * aPostRule

PerformRuleL(CBNFNode &, CFragmentedString::TStringMatch &)

TBool PerformRuleL ( CBNFNode & aRule,
CFragmentedString::TStringMatch & aMatched
) [protected, virtual]

Parameters

CBNFNode & aRule
CFragmentedString::TStringMatch & aMatched

PostAttrName(CBNFParser &)

void PostAttrName ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

PostAttributeL(CBNFParser &)

void PostAttributeL ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

PostCDSectL(CBNFParser &)

void PostCDSectL ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

PostCDStart(CBNFParser &)

void PostCDStart ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

PostCDataL(CBNFParser &)

void PostCDataL ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

PostCharDataL(CBNFParser &)

void PostCharDataL ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

PostCharReferenceValue(CBNFParser &)

void PostCharReferenceValue ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

PostDTDidAndUrl(CBNFParser &)

void PostDTDidAndUrl ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

PostDocRootName(CBNFParser &)

void PostDocRootName ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

PostDoctypedecl(CBNFParser &)

void PostDoctypedecl ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

PostETag(CBNFParser &)

void PostETag ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

PostEmptyElemClose(CBNFParser &)

void PostEmptyElemClose ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

PostEntityRefL(CBNFParser &)

void PostEntityRefL ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

PostNameL(CBNFParser &)

void PostNameL ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

PostNodeNameL(CBNFParser &)

void PostNodeNameL ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

PostProlog(CBNFParser &)

void PostProlog ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

PostPubidLiteralL(CBNFParser &)

void PostPubidLiteralL ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

PostPureAttValueL(CBNFParser &)

void PostPureAttValueL ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

PostPureSystemLiteralL(CBNFParser &)

void PostPureSystemLiteralL ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

PostTagStartL(CBNFParser &)

void PostTagStartL ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

PostVersionNumL(CBNFParser &)

void PostVersionNumL ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

PreAttribute(CBNFParser &)

void PreAttribute ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

PreExternalID(CBNFParser &)

void PreExternalID ( CBNFParser & aParser ) [protected, static]

Parameters

CBNFParser & aParser

ProcessDataL(HBufC8 &)

void ProcessDataL ( HBufC8 & aData ) [virtual]

Parameters

HBufC8 & aData

ProcessDataL(HBufC16 *)

void ProcessDataL ( HBufC16 * aData )

Parameters

HBufC16 * aData

ResetL(CXmlElement *)

void ResetL ( CXmlElement * aRootNode )

Parameters

CXmlElement * aRootNode

ResetL()

void ResetL ( ) [protected, virtual]

SL(CFragmentedString::TStringMatch &)

TBool SL ( CFragmentedString::TStringMatch & aMatched ) [protected]

Parameters

CFragmentedString::TStringMatch & aMatched

SetDTD(CBNFNode *)

void SetDTD ( CBNFNode * aDTD ) [inline]

Parameters

CBNFNode * aDTD

SetDataGathering(TBool)

void SetDataGathering ( TBool aDataGathering ) [inline]

Parameters

TBool aDataGathering

TreeL()

CBNFNode * TreeL ( ) [protected, virtual]

Member Enumerations Documentation

Enum TSignals

Enumerators

EDTDDefinitionFound = 1
ENoDTDDefined

Enum TXmlParserNodeTypes

Enumerators

EFirstXmlParserNodeType = ELastParserNodeType
EChar
ELetter
ES
EFirstNameChar
ENMoreNameChar
ELastXmlParserNodeType

Member Data Documentation

HBufC * iAttValue

HBufC * iAttValue [private]

HBufC * iAttrName

HBufC * iAttrName [private]

HBufC * iCData

HBufC * iCData [private]

CXmlElement * iCurrentNode

CXmlElement * iCurrentNode [private]

CBNFNode * iDTD

CBNFNode * iDTD [private]

HBufC * iDTDUrl

HBufC * iDTDUrl [private]

TBool iDataGathering

TBool iDataGathering [private]

HBufC * iDocRootName

HBufC * iDocRootName [private]

HBufC * iDocType

HBufC * iDocType [private]

TInt iErrorCode

TInt iErrorCode [private]

HBufC * iName

HBufC * iName [private]

HBufC * iPubidLiteral

HBufC * iPubidLiteral [private]

CXmlElement * iRootNode

CXmlElement * iRootNode [private]

TBool iRootTagFound

TBool iRootTagFound [private]

HBufC * iSystemLiteral

HBufC * iSystemLiteral [private]

HBufC * iXmlVersionString

HBufC * iXmlVersionString [private]