1
#include <xmlpullparser.h>
6
using namespace newsbeuter;
9
int main(int argc, char * argv[]) {
16
for (xmlpullparser::event e = xpp.next(); e != xmlpullparser::END_DOCUMENT; e = xpp.next()) {
18
case xmlpullparser::START_TAG:
19
cout << "start tag: " << xpp.getText() << endl;
20
for (unsigned int i=0;i<xpp.getAttributeCount();++i) {
21
cout << " attribute: " << xpp.getAttributeName(i) << " = " << xpp.getAttributeValue(i) << endl;
24
case xmlpullparser::TEXT:
25
cout << "text: " << xpp.getText() << endl;
27
case xmlpullparser::END_TAG:
28
cout << "end tag: " << xpp.getText() << endl;