Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'. You must Sign In to use this message board.
Hi!
This library would be a great if it worked!
I tried to compile a small application, taking into account the above comments, but it does not work. It compiles but does not work.
#include "stdafx.h"
#include <iostream>
#include <string>
#include <fstream>
#include <ostream>
#include <pugxml.h>
usingnamespace std;
usingnamespace pug;
int _tmain(int argc, _TCHAR* argv[])
{
//ostream f("myxml.xml",ios_base::out);
xml_parser* xml = new xml_parser;
xml_node root = xml->document();
xml_node node = root.append_child(pug::node_element);
node.name(_T("node"));
node.value(_T("my name is root"));
wcout<<node.value()<<endl;
//node.outer_xml(f);
xml_node d = root.first_element_by_name(_T("node"));
wcout<<d.value();//root.first_element_by_attribute(_T("node"));
system("pause");
return0;
}
Share your "Hello,World!" application please.
The demo don't work.