| 1849 | } |
| 1850 | |
| 1851 | void XMLDocument::PrintError() const |
| 1852 | { |
| 1853 | if ( _errorID ) { |
| 1854 | static const int LEN = 20; |
| 1855 | char buf1[LEN] = { 0 }; |
| 1856 | char buf2[LEN] = { 0 }; |
| 1857 | |
| 1858 | if ( _errorStr1 ) { |
| 1859 | TIXML_SNPRINTF( buf1, LEN, "%s", _errorStr1 ); |
| 1860 | } |
| 1861 | if ( _errorStr2 ) { |
| 1862 | TIXML_SNPRINTF( buf2, LEN, "%s", _errorStr2 ); |
| 1863 | } |
| 1864 | |
| 1865 | printf( "XMLDocument error id=%d '%s' str1=%s str2=%s\n", |
| 1866 | _errorID, ErrorName(), buf1, buf2 ); |
| 1867 | } |
| 1868 | } |
| 1869 | |
| 1870 | |
| 1871 | XMLPrinter::XMLPrinter( FILE* file, bool compact, int depth ) : |
nothing calls this directly
no test coverage detected