aboutsummaryrefslogtreecommitdiff
path: root/Src/Plugins/Library/ml_wire/FeedParse.cpp
blob: f39c7a7fde97854d228dafc926e0167e712da905 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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 ;
	}
}