t.stamp();
try {
FGGroundNetXMLLoader visitor(net);
- readXML(path.local8BitStr(), visitor);
+ readXML(path, visitor);
} catch (sg_exception& e) {
SG_LOG(SG_NAVAID, SG_INFO, "parsing groundnet XML failed:" << e.getFormattedMessage());
}
}
SG_LOG(SG_GENERAL, SG_DEBUG, "loadAirportXMLDataIntoVisitor: loading from " << path);
- readXML(path.local8BitStr(), aVisitor);
+ readXML(path, aVisitor);
return true;
}
f.append(fgGetString("/sim/aero"));
f.concat(".xml");
try {
- readXML(f.local8BitStr(), *_fdm);
+ readXML(f, *_fdm);
} catch (const sg_exception &e) {
SG_LOG(SG_FLIGHT, SG_ALERT,
"Error reading YASim FDM: '" << f << "'" << std::endl
// Read
try {
- readXML(argv[1], fdm);
+ readXML(SGPath::fromLocal8Bit(argv[1]), fdm);
} catch (const sg_exception &e) {
printf("XML parse error: %s (%s)\n",
e.getFormattedMessage().c_str(), e.getOrigin());
// Read
try {
string file = argv[1];
- readXML(file, *fdm);
+ readXML(SGPath(file), *fdm);
} catch (const sg_exception &e) {
printf("XML parse error: %s (%s)\n",
e.getFormattedMessage().c_str(), e.getOrigin());
GpxXmlVisitor gpxVistor(this);
try
{
- readXML(path.local8BitStr(), gpxVistor);
+ readXML(path, gpxVistor);
} catch (sg_exception& e)
{
// XML parsing fails => not a GPX XML file
assert(aApt);
try {
NavdataVisitor visitor(aApt, aPath);
- readXML(aPath.local8BitStr(), visitor);
+ readXML(aPath, visitor);
} catch (sg_io_exception& ex) {
SG_LOG(SG_NAVAID, SG_WARN, "failure parsing procedures: " << aPath <<
"\n\t" << ex.getMessage() << "\n\tat:" << ex.getLocation().asString());
SGPath path = globals->get_fg_root();
path.append("/Traffic/");
path.append(attval);
- readXML(path.local8BitStr(), *this);
+ readXML(path, *this);
}
elementValueStack.push_back("");
// cout << " " << atts.getName(i) << '=' << atts.getValue(i) << endl;
SG_LOG(SG_AI, SG_INFO, "parsing traffic in:" << p);
simgear::PathList trafficFiles = d2.children(simgear::Dir::TYPE_FILE, ".xml");
BOOST_FOREACH(SGPath xml, trafficFiles) {
- readXML(xml.local8BitStr(), *this);
+ readXML(xml, *this);
if (_cancelThread) {
return;
}
// use a SchedulerParser to parse, but run it in this thread,
// i.e don't start it
ScheduleParseThread parser(this);
- readXML(path.local8BitStr(), parser);
+ readXML(path, parser);
}
} else if (path.extension() == "conf") {
if (path.exists()) {