mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.autotest
git-svn-id: svn://ultimatepp.org/upp/trunk@11537 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
fd0505933e
commit
3deba47915
4 changed files with 33 additions and 0 deletions
6
autotest/XmlCharset/0.xml
Normal file
6
autotest/XmlCharset/0.xml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<test>
|
||||
<tag attr="Nějaký šikovný attribut">
|
||||
Úplně nevinný tag
|
||||
</tag>
|
||||
</test>
|
||||
6
autotest/XmlCharset/1.xml
Normal file
6
autotest/XmlCharset/1.xml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="windows 1250"?>
|
||||
<test>
|
||||
<tag attr="Nìjaký šikovný attribut">
|
||||
Úplnì nevinný tag
|
||||
</tag>
|
||||
</test>
|
||||
10
autotest/XmlCharset/XmlCharset.cpp
Normal file
10
autotest/XmlCharset/XmlCharset.cpp
Normal 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));
|
||||
}
|
||||
11
autotest/XmlCharset/XmlCharset.upp
Normal file
11
autotest/XmlCharset/XmlCharset.upp
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
uses
|
||||
Core;
|
||||
|
||||
file
|
||||
XmlCharset.cpp,
|
||||
0.xml,
|
||||
1.xml charset "windows-1250";
|
||||
|
||||
mainconfig
|
||||
"" = "";
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue