Definition at line 77 of file XmlVideoList.h. References Impala::Util::XmlDoc::GetAttributeValue(), Impala::Util::XmlDoc::GetChildNode(), Impala::Util::XmlDoc::GetChildNodes(), ILOG_DEBUG, mValid, mVideos, and Impala::Persistency::XmlFileReader::Read(). Referenced by XmlVideoList(). 00078 { 00079 mValid = false; 00080 Persistency::XmlFileReader reader; 00081 DOMDocument* doc = reader.Read(docName, ioBuf); 00082 if (!doc) 00083 return; 00084 DOMNode* videos = GetChildNode(doc, "videos", true); 00085 00086 std::vector<DOMNode*> vidNodes = GetChildNodes(videos, "video"); 00087 ILOG_DEBUG("nr videos = " << vidNodes.size()); 00088 for (int i=0 ; i<vidNodes.size() ; i++) 00089 { 00090 String href = GetAttributeValue(vidNodes[i], "xlink:href"); 00091 if (!href.empty()) 00092 mVideos.push_back(href); 00093 } 00094 mValid = true; 00095 }
Here is the call graph for this function:
|