| 2158 | |
| 2159 | |
| 2160 | XMLError XMLDocument::LoadFile( const char* filename ) |
| 2161 | { |
| 2162 | Clear(); |
| 2163 | FILE* fp = callfopen( filename, "rb" ); |
| 2164 | if ( !fp ) { |
| 2165 | SetError( XML_ERROR_FILE_NOT_FOUND, filename, 0, 0 ); |
| 2166 | return _errorID; |
| 2167 | } |
| 2168 | LoadFile( fp ); |
| 2169 | fclose( fp ); |
| 2170 | return _errorID; |
| 2171 | } |
| 2172 | |
| 2173 | // This is likely overengineered template art to have a check that unsigned long value incremented |
| 2174 | // by one still fits into size_t. If size_t type is larger than unsigned long type |
no test coverage detected