update to new build system
This commit is contained in:
1 parent
72be1818f1
commit
2f73e3bdff
33 files changed
+1586
-400
No files matched your search
@@ -0,0 +1,30 @@
|
||||
/*! @file
|
||||
|
||||
@id $Id$
|
||||
*/
|
||||
// 1 2 3 4 5 6 7 8
|
||||
// 45678901234567890123456789012345678901234567890123456789012345678901234567890
|
||||
|
||||
#include <xml-cxx/xml.hxx>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
XML_NODE(base);
|
||||
XML_NODE(child);
|
||||
XML_STRING(element);
|
||||
|
||||
int main(int, char**) {
|
||||
xml::Factory test(*xml::node::base.clone()
|
||||
<<(*xml::node::child.clone()
|
||||
<<*xml::string::element.clone()));
|
||||
std::stringstream ss("<base>\n"
|
||||
" <child>\n"
|
||||
" <element>Hello</element>\n"
|
||||
" </child>\n"
|
||||
"</base>");
|
||||
std::auto_ptr<xml::Node> file(test.read(ss));
|
||||
std::cout<<"The text in element is: "
|
||||
<<(*file)[xml::name::child][xml::name::element].text()
|
||||
<<std::endl;
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user