| 1719 | |
| 1720 | |
| 1721 | XMLError XMLDocument::SaveFile( const char* filename, bool compact ) { |
| 1722 | FILE* fp = callfopen( filename, "w" ); |
| 1723 | if ( !fp ) { |
| 1724 | SetError( XML_ERROR_FILE_COULD_NOT_BE_OPENED, filename, 0 ); |
| 1725 | return _errorID; |
| 1726 | } |
| 1727 | SaveFile(fp, compact); |
| 1728 | fclose( fp ); |
| 1729 | return _errorID; |
| 1730 | } |
| 1731 | |
| 1732 | |
| 1733 | XMLError XMLDocument::SaveFile( FILE* fp, bool compact ) { |
nothing calls this directly
no test coverage detected