cmlabs::XMLParser Class Reference

#include <XMLParser.h>

Inheritance diagram for cmlabs::XMLParser:

Inheritance graph
[legend]
Collaboration diagram for cmlabs::XMLParser:

Collaboration graph
[legend]

List of all members.

Public Member Functions

bool parseURL (const JString &url)
void setXmlUrl (const JString &url)
 XMLParser ()
 XMLParser (char url[])
virtual ~XMLParser ()
Objectclone () const
void deleteAllNodes ()
bool parse ()
bool parse (const JString &s)
bool parseXML (const JString &s)
JString verifyXML (const JString &xml)
JString getErrorString ()
ObjectCollection getAllNodes (const JString &childPath) const
XMLNodegetNodeWithAttrValue (Collection &attrPath, const JString &attrValue) const
ObjectCollectiongetChildTags ()
XMLNodegetChildNode (const JString &childPath) const
XMLNodegetChildNode (Collection &childPath) const
ObjectCollection getChildNodes (const JString &childPath) const
ObjectCollection getChildNodes (Collection &childPath) const
JString findAttr (const JString &attr) const
DictionarygetAttributes ()
JString asXML ()
JString asXMLWithCRs ()
bool isUTF ()
XMLNodegetRootNode () const
void setRootNode (XMLNode *node)
bool unitTest ()
bool getXmlUrl () const

Public Attributes

bool parseComments

Private Member Functions

bool parseLine (const JString &s)
bool addXMLAttrAndValue (const JString &attr, const JString &value)
bool addXMLNode (const JString &s, int line, int col)
bool addXMLCommentNode (const JString &s, int line, int col)
bool addXMLDirectiveNode (const JString &s, int line, int col)
JString trimLeadingWhite (char *s) const
void printNodeStack (char *s)
void reset ()
void pushNode (XMLNode *node)
XMLNodepopNode ()
bool isCloseComment (const JString &s) const

Private Attributes

int line
int tagDepth
JString currLine
JString xml
XMLNodexmlNode
XMLNodecurrNode
ObjectCollection nodeStack
JString buf
JString attr
JString tag
bool singleQuoteOpen
bool doubleQuoteOpen
bool attrTag
bool tagOpen
bool tagClose
bool commentOpen
bool isXMLUTF
JString xmlUrl
JString errorString


Detailed Description

Definition at line 48 of file XMLParser.h.


Constructor & Destructor Documentation

cmlabs::XMLParser::XMLParser (  ) 

Definition at line 34 of file XMLParser.cpp.

cmlabs::XMLParser::XMLParser ( char  url[]  ) 

Definition at line 44 of file XMLParser.cpp.

cmlabs::XMLParser::~XMLParser (  )  [virtual]

Definition at line 54 of file XMLParser.cpp.


Member Function Documentation

bool cmlabs::XMLParser::parseURL ( const JString url  ) 

Definition at line 134 of file XMLParser.cpp.

void cmlabs::XMLParser::setXmlUrl ( const JString url  ) 

Definition at line 104 of file XMLParser.cpp.

Object* cmlabs::XMLParser::clone (  )  const [virtual]

Implements cmlabs::Object.

Definition at line 56 of file XMLParser.h.

void cmlabs::XMLParser::deleteAllNodes (  ) 

Definition at line 60 of file XMLParser.cpp.

bool cmlabs::XMLParser::parse (  ) 

Definition at line 122 of file XMLParser.cpp.

bool cmlabs::XMLParser::parse ( const JString s  ) 

Definition at line 150 of file XMLParser.cpp.

bool cmlabs::XMLParser::parseXML ( const JString s  ) 

Definition at line 130 of file XMLParser.cpp.

JString cmlabs::XMLParser::verifyXML ( const JString xml  ) 

Definition at line 737 of file XMLParser.cpp.

JString cmlabs::XMLParser::getErrorString (  ) 

Definition at line 733 of file XMLParser.cpp.

ObjectCollection cmlabs::XMLParser::getAllNodes ( const JString childPath  )  const

Definition at line 683 of file XMLParser.cpp.

XMLNode * cmlabs::XMLParser::getNodeWithAttrValue ( Collection attrPath,
const JString attrValue 
) const

Definition at line 687 of file XMLParser.cpp.

ObjectCollection * cmlabs::XMLParser::getChildTags (  ) 

Definition at line 692 of file XMLParser.cpp.

XMLNode * cmlabs::XMLParser::getChildNode ( const JString childPath  )  const

Definition at line 713 of file XMLParser.cpp.

XMLNode * cmlabs::XMLParser::getChildNode ( Collection childPath  )  const

Definition at line 706 of file XMLParser.cpp.

ObjectCollection cmlabs::XMLParser::getChildNodes ( const JString childPath  )  const

Definition at line 720 of file XMLParser.cpp.

ObjectCollection cmlabs::XMLParser::getChildNodes ( Collection childPath  )  const

Definition at line 724 of file XMLParser.cpp.

JString cmlabs::XMLParser::findAttr ( const JString attr  )  const

Definition at line 701 of file XMLParser.cpp.

Dictionary * cmlabs::XMLParser::getAttributes (  ) 

Definition at line 728 of file XMLParser.cpp.

JString cmlabs::XMLParser::asXML (  ) 

Definition at line 671 of file XMLParser.cpp.

JString cmlabs::XMLParser::asXMLWithCRs (  ) 

Definition at line 677 of file XMLParser.cpp.

bool cmlabs::XMLParser::isUTF (  ) 

Definition at line 92 of file XMLParser.cpp.

XMLNode * cmlabs::XMLParser::getRootNode (  )  const

Definition at line 109 of file XMLParser.cpp.

void cmlabs::XMLParser::setRootNode ( XMLNode node  ) 

Definition at line 117 of file XMLParser.cpp.

bool cmlabs::XMLParser::unitTest (  )  [virtual]

Reimplemented from cmlabs::Object.

Definition at line 751 of file XMLParser.cpp.

bool cmlabs::XMLParser::getXmlUrl (  )  const

Definition at line 96 of file XMLParser.cpp.

bool cmlabs::XMLParser::parseLine ( const JString s  )  [private]

Definition at line 163 of file XMLParser.cpp.

bool cmlabs::XMLParser::addXMLAttrAndValue ( const JString attr,
const JString value 
) [private]

Definition at line 629 of file XMLParser.cpp.

bool cmlabs::XMLParser::addXMLNode ( const JString s,
int  line,
int  col 
) [private]

Definition at line 537 of file XMLParser.cpp.

bool cmlabs::XMLParser::addXMLCommentNode ( const JString s,
int  line,
int  col 
) [private]

Definition at line 566 of file XMLParser.cpp.

bool cmlabs::XMLParser::addXMLDirectiveNode ( const JString s,
int  line,
int  col 
) [private]

Definition at line 602 of file XMLParser.cpp.

JString cmlabs::XMLParser::trimLeadingWhite ( char *  s  )  const [private]

Definition at line 517 of file XMLParser.cpp.

void cmlabs::XMLParser::printNodeStack ( char *  s  )  [private]

Definition at line 640 of file XMLParser.cpp.

void cmlabs::XMLParser::reset (  )  [private]

Definition at line 68 of file XMLParser.cpp.

void cmlabs::XMLParser::pushNode ( XMLNode node  )  [private]

Definition at line 494 of file XMLParser.cpp.

XMLNode * cmlabs::XMLParser::popNode (  )  [private]

Definition at line 500 of file XMLParser.cpp.

bool cmlabs::XMLParser::isCloseComment ( const JString s  )  const [private]

Definition at line 140 of file XMLParser.cpp.


Member Data Documentation

Definition at line 93 of file XMLParser.h.

int cmlabs::XMLParser::line [private]

Definition at line 109 of file XMLParser.h.

Definition at line 110 of file XMLParser.h.

Definition at line 111 of file XMLParser.h.

Definition at line 112 of file XMLParser.h.

Definition at line 113 of file XMLParser.h.

Definition at line 114 of file XMLParser.h.

Definition at line 116 of file XMLParser.h.

Definition at line 118 of file XMLParser.h.

Definition at line 119 of file XMLParser.h.

Definition at line 120 of file XMLParser.h.

Definition at line 122 of file XMLParser.h.

Definition at line 123 of file XMLParser.h.

Definition at line 124 of file XMLParser.h.

Definition at line 125 of file XMLParser.h.

Definition at line 126 of file XMLParser.h.

Definition at line 127 of file XMLParser.h.

Definition at line 130 of file XMLParser.h.

Definition at line 131 of file XMLParser.h.

Definition at line 133 of file XMLParser.h.


The documentation for this class was generated from the following files:

Generated on Tue Jul 7 16:24:26 2009 for CoreLibrary by  doxygen 1.5.6