| 194 | } |
| 195 | |
| 196 | bool TMXMapInfo::parseXMLFile(std::string_view xmlFilename) |
| 197 | { |
| 198 | SAXParser parser; |
| 199 | |
| 200 | if (false == parser.init("UTF-8")) |
| 201 | { |
| 202 | return false; |
| 203 | } |
| 204 | |
| 205 | parser.setDelegator(this); |
| 206 | |
| 207 | return parser.parse(xmlFilename, SAXParser::ParseOption::TRIM_WHITESPACE); |
| 208 | } |
| 209 | |
| 210 | // the XML parser calls here with all the elements |
| 211 | void TMXMapInfo::startElement(void* /*ctx*/, const char* name, const char** atts) |
no test coverage detected