Xml Simple Lib

Data Structures

class  NS
class  XMLPacket

Functions

 XMLPacket::XMLPacket (const char *version, const char *rootnode, const NS &ns)
 XMLPacket::XMLPacket (const char *version, const char *rootnode)
void XMLPacket::Clean (const char *version, const char *rootnode)
void XMLPacket::setEncoding (const char *encoding)
Str XMLPacket::getEncoding ()
void XMLPacket::addChild (const char *basepath, const char *nodename)
void XMLPacket::addChild (const char *basepath, const char *nodename, const char *nodeval)
void XMLPacket::constructTreeWithValue (const char *basepath, const char *treepath, const char *nodevalue)
void XMLPacket::constructTree (const char *basepath, const char *treepath)
void XMLPacket::setElement (const char *basepath, const char *nodevalue)
void XMLPacket::setProp (const char *basepath, const char *name, const char *value)
Str XMLPacket::getProp (const char *basepath, const char *name)
void XMLPacket::setNS (const char *basepath, NS ns)
bool XMLPacket::executeXPathBool (const Str &expr) const
Str XMLPacket::executeXPathStr (const Str &expr) const
Double XMLPacket::executeXPathDouble (const Str &expr) const
Int XMLPacket::executeXPathInt (const Str &expr) const
list< Str > XMLPacket::executeXPathListStr (const Str &expr) const
list< pair< Str, Str > > XMLPacket::executeXPathPairListStr (const Str &expr) const
const std::string XMLPacket::generateXML () const
const list< NSXMLPacket::getNSset () const
void XMLPacket::addNS (NS x)
void XMLPacket::registerNSInXML (const NS &ns, xmlNodePtr node=0)
void XMLPacket::registerNSInXML (const NS &ns, const char *path)
list< NSXMLPacket::findNsInXML (void) const
const Str XMLPacket::getHrefByPrefix (const Str prefix) const
xmlNsPtr XMLPacket::findNsByHref (const Str href, const xmlNodePtr node) const
xmlNsPtr XMLPacket::findAndRegisterNSInXML (const Str &prefix, xmlNodePtr curnode)
xmlNsPtr XMLPacket::findNsByPrefixInXML (const Str &prefix, const xmlNodePtr node=0) const

Function Documentation

void XMLPacket::addChild ( const char *  basepath,
const char *  nodename,
const char *  nodeval 
) [inherited]

Adding Child Tag to Xml

Parameters:
basepath - path to add child tag
nodename - name of added tag
nodeval - value of node
void XMLPacket::addChild ( const char *  basepath,
const char *  nodename 
) [inherited]

Adding Child Tag to Xml

Parameters:
basepath - path to add child tag
nodename - name of added tag
void XMLPacket::addNS ( NS  x  )  [inline, inherited]

Add Name Space

Parameters:
x - name space
void XMLPacket::Clean ( const char *  version,
const char *  rootnode 
) [inherited]

Clean Xml

Parameters:
version of xml
rootnode - tag to clean
void XMLPacket::constructTree ( const char *  basepath,
const char *  treepath 
) [inherited]

Construct Tree With Value

Parameters:
basepath - place to start constructing
treepath - path of tree
void XMLPacket::constructTreeWithValue ( const char *  basepath,
const char *  treepath,
const char *  nodevalue 
) [inherited]

Construct Tree With Value

Parameters:
basepath - place to start constructing
treepath - path of tree
nodevalue - value of node
bool XMLPacket::executeXPathBool ( const Str &  expr  )  const [inherited]

Execute xpath

Parameters:
expr - expression
Returns:
true if expression is exists
Double XMLPacket::executeXPathDouble ( const Str &  expr  )  const [inherited]

Execute xpath

Parameters:
expr - expression
Returns:
result(type double) of xpath expression
Int XMLPacket::executeXPathInt ( const Str &  expr  )  const [inherited]

Execute xpath

Parameters:
expr - expression
Returns:
result(type int) of xpath expression
std::list< Str > XMLPacket::executeXPathListStr ( const Str &  expr  )  const [inherited]

Execute xpath

Parameters:
expr - expression
Returns:
result of xpath expression - list of strings
std::list< std::pair< Str, Str > > XMLPacket::executeXPathPairListStr ( const Str &  expr  )  const [inherited]

Execute xpath

Parameters:
expr - expression
Returns:
result of xpath expression - list of pair of Name,Value
Str XMLPacket::executeXPathStr ( const Str &  expr  )  const [inherited]

Execute xpath

Parameters:
expr - expression
Returns:
result of xpath expression
xmlNsPtr XMLPacket::findAndRegisterNSInXML ( const Str &  prefix,
xmlNodePtr  curnode 
) [inherited]

Find and Register Name Space

Parameters:
prefix 
curnode - pointer to to node where to search
Returns:
pointer to Name space
xmlNsPtr XMLPacket::findNsByHref ( const Str  href,
const xmlNodePtr  node 
) const [inherited]
Parameters:
href of name space
node - pointer to to node where to search
Returns:
pointer to Name space
xmlNsPtr XMLPacket::findNsByPrefixInXML ( const Str &  prefix,
const xmlNodePtr  node = 0 
) const [inherited]

Find Name Space by Prefix

Parameters:
prefix 
node - pointer to to node where to search
Returns:
pointer to Name space
list< NS > XMLPacket::findNsInXML ( void   )  const [inherited]
Returns:
list of all name spaces in XML
const std::string XMLPacket::generateXML (  )  const [inherited]

Generate XML

Returns:
generated XML
Str XMLPacket::getEncoding (  )  [inherited]
Returns:
encoding
const Str XMLPacket::getHrefByPrefix ( const Str  prefix  )  const [inherited]
Returns:
Href of name space by prefix
const list<NS> XMLPacket::getNSset (  )  const [inline, inherited]

Get Name Space Set

Returns:
list of Name Spaces
Str XMLPacket::getProp ( const char *  basepath,
const char *  name 
) [inherited]

Get Property

Returns:
property
void XMLPacket::registerNSInXML ( const NS ns,
const char *  path 
) [inherited]

Register Name Space

Parameters:
ns - name space
path - path to add name space
void XMLPacket::registerNSInXML ( const NS ns,
xmlNodePtr  node = 0 
) [inherited]

Register Name Space

Parameters:
ns - name space
node - pointer to node
void XMLPacket::setElement ( const char *  basepath,
const char *  nodevalue 
) [inherited]

Set Element

Parameters:
basepath - path to set value
nodevalue - value
void XMLPacket::setEncoding ( const char *  encoding  )  [inherited]

Set encoding

Parameters:
encoding (e.g. "UTF-8")
void XMLPacket::setNS ( const char *  basepath,
NS  ns 
) [inherited]

Set Name Space

Parameters:
basepath - path to add name space
ns - name space
void XMLPacket::setProp ( const char *  basepath,
const char *  name,
const char *  value 
) [inherited]

Set Property

Parameters:
basepath - path to set property
name - Name of property
value - value of property
XMLPacket::XMLPacket ( const char *  version,
const char *  rootnode 
) [inherited]

Constructor

Parameters:
version of xml
rootnode - name of main tag(root node)
XMLPacket::XMLPacket ( const char *  version,
const char *  rootnode,
const NS ns 
) [inherited]

Constructor

Parameters:
version of xml
rootnode - name of main tag(root node)
ns - name space
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 3 Jun 2010 for DomainPlug-insDocumentation by  doxygen 1.6.1