qaengine/src/XMLTree.cxx
//-----------------------------------------------------------------------------------------
// This method loads the tree from the XML policy file.
//-----------------------------------------------------------------------------------------
This method loads the tree from the XML policy file.
This method loads the tree from the XML policy file .
int XMLTree::open(string xmlFileName) {
   ifstream in(xmlFileName.c_str(),ios::in);
   if(!in.is_open()) return -1;
   if(m_Root) {
       recursiveFree(m_Root);
       m_Root = NULL;
   }
   m_NodeIndex = 0;
   int result = parseXML(in);
   in.close();
   return result;
}
int XMLTree :: open ( string xmlFileName ) { ifstream in ( xmlFileName . c_str ( ) , ios :: in ) ; if ( ! in . is_open ( ) ) return -1 ; if ( m_Root ) { recursiveFree ( m_Root ) ; m_Root = NULL ; } m_NodeIndex = 0 ; int result = parseXML ( in ) ; in . close ( ) ; return result ; }
This method loads the tree from the XML policy file.
This method loads the tree from the XML policy file .