MCPcopy Create free account
hub / github.com/axmolengine/axmol / parseXMLFile

Method parseXMLFile

core/2d/TMXXMLParser.cpp:196–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196bool 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
211void TMXMapInfo::startElement(void* /*ctx*/, const char* name, const char** atts)

Callers 1

startElementMethod · 0.80

Calls 3

setDelegatorMethod · 0.80
initMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected