| 32 | } |
| 33 | |
| 34 | int cmXMLParser::ParseFile(char const* file) |
| 35 | { |
| 36 | if (!file) { |
| 37 | return 0; |
| 38 | } |
| 39 | |
| 40 | cmsys::ifstream ifs(file); |
| 41 | if (!ifs) { |
| 42 | return 0; |
| 43 | } |
| 44 | |
| 45 | std::ostringstream str; |
| 46 | str << ifs.rdbuf(); |
| 47 | return this->Parse(str.str().c_str()); |
| 48 | } |
| 49 | |
| 50 | int cmXMLParser::InitializeParser() |
| 51 | { |