.autotest

git-svn-id: svn://ultimatepp.org/upp/trunk@11537 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2017-12-08 18:16:33 +00:00
parent fd0505933e
commit 3deba47915
4 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<test>
<tag attr="Nějaký šikovný attribut">
Úplně nevinný tag
</tag>
</test>

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="windows 1250"?>
<test>
<tag attr="Nìjaký šikovný attribut">
Úplnì nevinný tag
</tag>
</test>

View file

@ -0,0 +1,10 @@
#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
XmlNode xml = ParseXML(LoadFile(GetDataFile("1.xml")));
DDUMP(xml["test"]["tag"].GatherText());
DDUMP(xml["test"]["tag"].Attr(0));
}

View file

@ -0,0 +1,11 @@
uses
Core;
file
XmlCharset.cpp,
0.xml,
1.xml charset "windows-1250";
mainconfig
"" = "";