Add article parsing

This commit is contained in:
William Brawner 2018-02-08 22:19:58 -06:00
parent 64ec4cc8b1
commit 43fe128296

View file

@ -66,6 +66,14 @@ int main(int argc, char **argv) {
}
} else if (strncmp("item", channelChild->name, strlen(channelChild->name)) == 0) {
articleCount++;
xmlNode* itemData = channelChild->children;
printf("Article info:\n");
do {
if (strncmp("text", itemData->name, strlen(itemData->name)) != 0) {
printf("%s: %s\n", itemData->name, itemData->children->content);
}
itemData = itemData->next;
} while (itemData != NULL);
}
channelChild = channelChild->next;
}