| 1939 | } |
| 1940 | |
| 1941 | void XMLDocument::PrintError() const |
| 1942 | { |
| 1943 | if ( Error() ) { |
| 1944 | static const int LEN = 20; |
| 1945 | char buf1[LEN] = { 0 }; |
| 1946 | char buf2[LEN] = { 0 }; |
| 1947 | |
| 1948 | if ( _errorStr1 ) { |
| 1949 | TIXML_SNPRINTF( buf1, LEN, "%s", _errorStr1 ); |
| 1950 | } |
| 1951 | if ( _errorStr2 ) { |
| 1952 | TIXML_SNPRINTF( buf2, LEN, "%s", _errorStr2 ); |
| 1953 | } |
| 1954 | |
| 1955 | printf( "XMLDocument error id=%d '%s' str1=%s str2=%s\n", |
| 1956 | _errorID, ErrorName(), buf1, buf2 ); |
| 1957 | } |
| 1958 | } |
| 1959 | |
| 1960 | void XMLDocument::Parse() |
| 1961 | { |
nothing calls this directly
no test coverage detected