Commit 6405e210 authored by Vitaly Lipatov's avatar Vitaly Lipatov

improve UniXML test

parent cd93f1a6
<?xml version = '1.0' encoding = 'koi8-r' ?>
<?xml version = '1.0' encoding = 'utf-8' ?>
<UNISETPLC>
<UserData></UserData>
......
......@@ -37,6 +37,24 @@ int main()
<< " int id=" << it.getIntProp("dbrepeat")
<< endl;
}
{
xmlNode* cnode = xml.findNode(xml.getFirstNode(),"ObjectsMap");
if( cnode == NULL )
{
cerr << "<testnode> not found" << endl;
return 1;
}
UniXML_iterator it = xml.findNode(xml.getFirstNode(),"item", "LocalhostNode");
if( it == NULL )
{
cerr << "<testnode> not found" << endl;
return 1;
}
cout << "textname=" << it.getProp("textname");
}
xml.save("test.out.xml");
/*
}
catch( UniSetTypes::Exception& ex )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment