~ubuntu-branches/ubuntu/trusty/nordugrid-arc/trusty-proposed

« back to all changes in this revision

Viewing changes to src/hed/libs/common/XMLNode.h

  • Committer: Package Import Robot
  • Author(s): Mattias Ellert
  • Date: 2013-11-29 13:39:10 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20131129133910-altaxrfowczzl2ev
Tags: 4.0.0-1
4.0.0 Release (Closes: #715131) (LP: #1049798)

Show diffs side-by-side

added added

removed removed

Lines of Context:
354
354
       as in operator[].
355
355
       \return all nodes which are represented by path. */
356
356
    XMLNodeList Path(const std::string& path);
357
 
    /// Uses xPath to look up the whole xml structure,
 
357
    /// Uses XPath to look up XML tree.
358
358
    /** Returns a list of XMLNode points. The xpathExpr should be like
359
359
       "//xx:child1/" which indicates the namespace and node that you
360
 
       would like to find; The nsList is the namespace the result should
361
 
       belong to (e.g. xx="uri:test"). Query is run on whole XML document
362
 
       but only the elements belonging to this XML subtree are returned. */
 
360
       would like to find. The nsList contains namespaces used by the 
 
361
       xpathExpr. 
 
362
       Query is run on whole XML document but only the elements belonging
 
363
       to this XML subtree are returned.
 
364
       Please note, that default namespaces - without prefix - are not 
 
365
       fully supported. So xpathExpr without properly defined namespace
 
366
       prefixes will only work for XML documents without namespaces. */
363
367
    XMLNodeList XPathLookup(const std::string& xpathExpr, const NS& nsList);
364
368
    /// Get the root node from any child node of the tree.
365
369
    XMLNode GetRoot(void);