ultimatepp/autotest/XmlStream2/XmlStream2.cpp
cxl 7cbbdf26cb .autotest
git-svn-id: svn://ultimatepp.org/upp/trunk@10448 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-11-16 16:53:11 +00:00

29 lines
413 B
C++

#include <Core/Core.h>
#include <plugin/zip/zip.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
StdLogSetup(LOG_FILE|LOG_COUT);
FileUnZip unzip(GetDataFile("test.zip"));
String s = unzip.ReadFile();
ASSERT(s.GetCount() > 12000000);
StringStream ss(s);
XmlParser p(ss);
try {
ParseXML(p);
}
catch(XmlError e) {
DLOG(e);
NEVER();
}
LOG("============= OK");
}