mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-10 11:59:58 -05:00
Initial community commit
This commit is contained in:
38
Src/Plugins/Library/ml_wire/FeedParse.cpp
Normal file
38
Src/Plugins/Library/ml_wire/FeedParse.cpp
Normal file
@@ -0,0 +1,38 @@
|
||||
#include "Main.h"
|
||||
#include "FeedParse.h"
|
||||
|
||||
|
||||
#include "RFCDate.h"
|
||||
|
||||
#include "RSSParse.h"
|
||||
#include "AtomParse.h"
|
||||
#ifdef DEBUG
|
||||
#include <iostream>
|
||||
static void DisplayNodes(XMLNode &node)
|
||||
{
|
||||
XMLNode::NodeMap::iterator nodeItr;
|
||||
for (nodeItr = node.nodes.begin();nodeItr != node.nodes.end(); nodeItr++)
|
||||
{
|
||||
|
||||
for (XMLNode::NodeList::iterator itr = nodeItr->second.begin(); itr != nodeItr->second.end(); itr++)
|
||||
{
|
||||
std::wcerr << L"<" << nodeItr->first << L">" << std::endl;
|
||||
DisplayNodes(**itr);
|
||||
std::wcerr << L"</" << nodeItr->first << L">" << std::endl;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void FeedParse::ReadNodes(const wchar_t *url)
|
||||
{
|
||||
const XMLNode *curNode = xmlDOM.GetRoot();
|
||||
|
||||
curNode = curNode->Get(L"rss");
|
||||
if (curNode)
|
||||
{
|
||||
ReadRSS(curNode, sync, loadingOwnFeed, url);
|
||||
return ;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user