engine/XML/source/XMLFileReader.cpp
// Read the data from a file, and return the root element.
Read the data from a file, and return the root element.
Read the data from a file and return the root element .
XMLNode XMLFileReader::get_xml_from_file(const string& filename)
{
  XMLParser* parser = XMLParser::instance();
  struct stat file_status;
  check_file_status(filename, &file_status);
  XMLDocument xml_doc = parser->parse(filename);
  XMLNode root_node = xml_doc.get_document_element();
  return root_node;
}
XMLNode XMLFileReader :: get_xml_from_file ( const string & filename ) { XMLParser * parser = XMLParser :: instance ( ) ; struct stat file_status ; check_file_status ( filename , & file_status ) ; XMLDocument xml_doc = parser -> parse ( filename ) ; XMLNode root_node = xml_doc . get_document_element ( ) ; return root_node ; }
Read the data from a file, and return the root element.
Read the data from a file and return the root element .