2009-07-28, 09:29
for some reason episodeguide seems to do a linear processing of several url's. there is no reason why i wrote it like this, old old code. i should change it to follow the same rules.
the point of include are that after load, it would be just as if the function resided in the same xml main scraper. that's why i say inject. it's trivial in tinyxml;
and can't be that much harder with your xml parser?
the point of include are that after load, it would be just as if the function resided in the same xml main scraper. that's why i say inject. it's trivial in tinyxml;
Code:
// inject includes
const TiXmlElement* include = m_pRootElement->FirstChildElement("include");
while (include)
{
if (include->FirstChild())
{
CStdString strFile = CUtil::AddFileToFolder(strPath,include->FirstChild()->Value());
TiXmlDocument doc;
if (doc.LoadFile(strFile))
{
const TiXmlNode* node = doc.RootElement()->FirstChild();
while (node)
{
m_pRootElement->InsertEndChild(*node);
node = node->NextSibling();
}
}
}
include = include->NextSiblingElement("include");
}
and can't be that much harder with your xml parser?