Reads a DOM document at the specified address; keep reader 'alive' until doc can be discarded!
Definition at line 53 of file XmlFileReader.h.
References FileExists(), and ValidateFile().
Referenced by Impala::Application::MediaTable::TableDataSourceFlickrPhotoList::loadXML(), Impala::Core::VideoSet::Mpeg7DocAudio::ReadData(), Impala::Core::VideoSet::Mpeg7Doc::ReadData(), Impala::Core::Trec::Collection::ReadData(), Impala::Core::IDash::XmlVideoList::ReadData(), Impala::Core::IDash::XmlVideo::ReadData(), Impala::Core::IDash::XmlShot::ReadData(), Impala::Core::IDash::XmlQuerySet::ReadData(), Impala::Core::IDash::XmlJobReference::ReadData(), Impala::Core::IDash::XmlJob::ReadData(), Impala::Core::IDash::XmlCase::ReadData(), Impala::Core::IDash::XmlAnnotationSet::ReadData(), Impala::Application::TagsLife::Tag::readGeo(), Impala::Core::VideoSet::ShotSegmenter::ReadGroundTruth(), Impala::Application::TagsLife::Tag::readRelated(), Impala::Application::TagsLife::Tag::readTag(), and Impala::Core::Trec::TrecTopic::ReadTopics().
00054 {
00055 if (!FileExists(filePath))
00056 if (fileRequired)
00057 throw std::runtime_error("file missing: " + filePath);
00058 else
00059 return 0;
00060
00061 if (!ValidateFile(filePath))
00062 throw std::runtime_error("validation failed for file: " + filePath);
00063
00064 Util::IOBufferFile ioBuf(filePath, true, true);
00065
00066 return Read(filePath, &ioBuf);
00067 }
Here is the call graph for this function: