/ styx_dom.hh / Objects / StyxDom / Private Methods / Description

Private Methods



openTagHandler

void			openTagHandler(string name, vector attr);
Method called when an open tag is founded by the SAX parser.

Parameters
name Name of the tag.
attr All attributes of the node.


insideTextHandler

void			insideTextHandler(char c);
Method called when a character is founded b the SAX parser between an open and a close tag.

Parameters
c The founded character.


closeTagHandler

void			closeTagHandler(string tagName);
Method called by the SAX parser when a close tag is founded.

Parameters
tagName Name of the tag.


commentHandler

void			commentHandler(string content);
Method called when the SAX parser find an XML comment tag.

Parameters
content The content of the tag.


processingInstructionHandler

void			processingInstructionHandler(string target,
						     string content);
Method called when a processing instruction tag is founded by the SAX parser.

Parameters
target Name of the processing instruction's target.
content Content of the instruction.


cdataHandler

void			cdataHandler(string content);
Method called when a CDATA tag is founded by the SAX parser.

Parameters
content Content of the tag.


errorHandler

void			errorHandler(int line);
Method called by the SAX parser when a parse error occurs.

Parameters
line Line number where the error is placed.


_xpathContainsPipe

bool			_xpathContainsPipe(string str);
Used by XPath functions to know if a string contains a '|'.

Parameters
str The string where the pipe is searched.

Result: A boolean set to true if a pipe is founded..


_getNextXpathName

string		_getNextXpathName(const char **str);
Used by XPath functions to get the next expression's token.

Parameters
A pointer to the string.

Result: A string which contains the token..