logo
Main Page | Namespaces | Classes | Compounds | Files | Compound Members | Related

Utils::XMLSearch Class Reference

#include <Utils.h>

List of all members.

Public Methods

 XMLSearch (XMLDoc *d)
 Constructor.

 XMLSearch ()
 Destructor.

void find (string MPath, XMLNode *startNode=0)
void clearQuery ()
 Old queries will generate a bit of wasted space. Call this to clean up.


Public Attributes

vector< XMLNode * > answer
 Used for buffering query.


Detailed Description

Implements search facilities. See find for more info

Definition at line 279 of file Utils.h.


Member Function Documentation

void Utils::XMLSearch::find string    MPath,
XMLNode   startNode = 0
 

Searches through nodes for a path (I.E.: "/html/body/p"). As of now:

  • Only tag nodes are searched!
  • You con optionally place a wildcard (*) at the end of the string.
Result is stored in the answer vector.

Definition at line 756 of file Utils.cpp.

References answer, and Utils::XMLDoc::rootNode.


The documentation for this class was generated from the following files:
Syntopia Project. Visit the web page, or the SourceForge page.
Docs made by Doxygen. Email: Mikael Christensen