| 1788 | } |
| 1789 | |
| 1790 | void XMLDocument::PrintError() const { |
| 1791 | if ( Error() ) { |
| 1792 | static const int LEN = 20; |
| 1793 | char buf1[LEN] = { 0 }; |
| 1794 | char buf2[LEN] = { 0 }; |
| 1795 | |
| 1796 | if ( _errorStr1 ) { |
| 1797 | TIXML_SNPRINTF( buf1, LEN, "%s", _errorStr1 ); |
| 1798 | } |
| 1799 | if ( _errorStr2 ) { |
| 1800 | TIXML_SNPRINTF( buf2, LEN, "%s", _errorStr2 ); |
| 1801 | } |
| 1802 | |
| 1803 | printf( "XMLDocument error id=%d '%s' str1=%s str2=%s\n", |
| 1804 | _errorID, ErrorName(), buf1, buf2 ); |
| 1805 | } |
| 1806 | } |
| 1807 | |
| 1808 | void XMLDocument::Parse() { |
| 1809 | TIXMLASSERT( NoChildren() ); // Clear() must have been called previously |
nothing calls this directly
no test coverage detected