1 # Tests for the XML parser
2 # (c) 2008 Pavel Charvat <pchar@ucw.cz>
4 Run: ../obj/shxml/xml-test
5 In: <?xml version="1.0"?>
10 Run: ../obj/shxml/xml-test -s
11 In: <?xml version="1.0" encoding="ISO-8859-1"?>
12 <html><a a1="val1" a2="val2">text1&amp;<</a>text2</html>
15 SAX: xml_decl version=1.0 standalone=0 fb_encoding=ISO-8859-1
17 SAX: stag <a> a1='val1' a2='val2'
18 SAX: chars text='text1&<'
20 SAX: chars text='text2'
25 Run: ../obj/shxml/xml-test -sptd
26 In: <?xml version="1.0"?>
28 <!ELEMENT root (#PCDATA|a)*>
29 <!ENTITY % pe1 "<!ENTITY e1 'text'>">
31 <!ENTITY e2 '<&e1;>'>
32 <!ELEMENT a (#PCDATA)*>
34 <root>&e1;<a>&e2;</a></root>
37 SAX: xml_decl version=1.0 standalone=0 fb_encoding=UTF-8
38 SAX: doctype_decl type=root public='' system='' extsub=0 intsub=1
43 SAX: chars text='text'
44 PULL: chars text='text'
47 SAX: chars text='<text>'
48 PULL: chars text='<text>'
56 DOM: chars text='text'
58 DOM: chars text='<text>'