/home/bes3soft/bes3soft/Boss/7.0.2/dist/7.0.2/Calibration/xmlBase/xmlBase-00-00-03/src/Dom.cxx File Reference

#include "xmlBase/Dom.h"
#include <xercesc/dom/DOMElement.hpp>
#include <xercesc/dom/DOMNodeList.hpp>
#include <xercesc/dom/DOMCharacterData.hpp>
#include <xercesc/dom/DOMNamedNodeMap.hpp>
#include <xercesc/dom/DOMDocument.hpp>
#include <xercesc/dom/DOMException.hpp>
#include <xercesc/dom/DOMTreeWalker.hpp>
#include <xercesc/util/TransService.hpp>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/util/PlatformUtils.hpp>
#include "facilities/Util.h"
#include <sstream>
#include <string>
#include <cstring>
#include <cassert>

Go to the source code of this file.

Namespaces

namespace  xmlBase

Functions

XERCES_CPP_NAMESPACE_USE DOMTreeWalker * makeWalker (const DOMNode *node)


Function Documentation

XERCES_CPP_NAMESPACE_USE DOMTreeWalker* @5::makeWalker ( const DOMNode *  node  )  [static]

Definition at line 34 of file Dom.cxx.

Referenced by xmlBase::Dom::findFirstChildByName().

00034                                                  {
00035     if (!node) return 0;
00036     DOMDocument* doc = node->getOwnerDocument();
00037     unsigned long whatToShow = DOMNodeFilter::SHOW_ELEMENT;
00038 
00039     bool expand = true;
00040     DOMNode* casted = const_cast<DOMNode*>(node);
00041     // Show only elements;  Expand entity references
00042     DOMTreeWalker* walk = doc->createTreeWalker(casted, whatToShow, 0, expand);
00043     return walk;
00044   }


Generated on Tue Nov 29 23:14:53 2016 for BOSS_7.0.2 by  doxygen 1.4.7