summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid')
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/CVS/Entries37
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/CVS/Repository1
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/CVS/Root1
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtd00.xml7
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtd01.xml6
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtdtest.dtd43
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/element.xml38
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/ext01.ent7
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/ext01.xml9
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/ext02.xml8
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa01.xml10
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa02.xml30
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa03.xml25
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa04.xml30
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/notation01.dtd8
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/notation01.xml5
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/null.ent0
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/optional.xml50
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/CVS/Entries28
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/CVS/Repository1
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/CVS/Root1
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/dtd00.xml1
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/dtd01.xml1
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/element.xml1
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/ext01.xml1
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/ext02.xml1
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa01.xml6
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa02.xml6
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa03.xml6
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa04.xml6
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/notation01.xml4
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/optional.xml1
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/pe00.xml1
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/pe02.xml1
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/pe03.xml1
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/required00.xml1
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa01.xml1
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa02.xml6
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa03.xml6
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa04.xml6
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa05.xml6
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sgml01.xml1
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang01.xml1
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang02.xml1
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang03.xml1
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang04.xml1
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang05.xml1
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang06.xml1
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe00.dtd6
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe00.xml2
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe01.dtd6
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe01.ent2
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe01.xml2
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe02.xml9
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe03.xml8
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/required00.xml8
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa.dtd39
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa01.xml13
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa02.xml52
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa03.xml28
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa04.xml38
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa05.xml7
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sgml01.xml14
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang01.xml5
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang02.xml6
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang03.xml6
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang04.xml6
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang05.xml6
-rw-r--r--tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang06.xml6
69 files changed, 684 insertions, 0 deletions
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/CVS/Entries b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/CVS/Entries
new file mode 100644
index 0000000000..cecb2c4024
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/CVS/Entries
@@ -0,0 +1,37 @@
+/dtd00.xml/1.2/Thu Feb 7 19:44:41 2002//
+/dtd01.xml/1.2/Thu Feb 7 19:44:41 2002//
+/dtdtest.dtd/1.3/Wed May 1 17:59:08 2002//
+/element.xml/1.2/Thu Feb 7 19:44:41 2002//
+/ext01.ent/1.2/Thu Feb 7 19:44:41 2002//
+/ext01.xml/1.2/Thu Feb 7 19:44:41 2002//
+/ext02.xml/1.2/Thu Feb 7 19:44:41 2002//
+/not-sa01.xml/1.2/Thu Feb 7 19:44:41 2002//
+/not-sa02.xml/1.3/Mon Apr 22 13:16:53 2002//
+/not-sa03.xml/1.2/Thu Feb 7 19:44:41 2002//
+/not-sa04.xml/1.2/Thu Feb 7 19:44:41 2002//
+/notation01.dtd/1.2/Thu Feb 7 19:44:41 2002//
+/notation01.xml/1.2/Thu Feb 7 19:44:41 2002//
+/null.ent/1.1/Mon Feb 11 18:38:34 2002//
+/optional.xml/1.3/Wed May 1 18:06:13 2002//
+/pe00.dtd/1.2/Thu Feb 7 19:44:41 2002//
+/pe00.xml/1.2/Thu Feb 7 19:44:41 2002//
+/pe01.dtd/1.1/Fri Feb 22 16:47:37 2002//
+/pe01.ent/1.1/Fri Feb 22 16:47:37 2002//
+/pe01.xml/1.4/Fri Feb 22 16:47:37 2002//
+/pe02.xml/1.2/Thu Feb 7 19:44:41 2002//
+/pe03.xml/1.1/Thu Feb 21 18:51:30 2002//
+/required00.xml/1.2/Thu Feb 7 19:44:41 2002//
+/sa.dtd/1.2/Thu Feb 7 19:44:41 2002//
+/sa01.xml/1.2/Thu Feb 7 19:44:41 2002//
+/sa02.xml/1.3/Mon Apr 22 13:12:39 2002//
+/sa03.xml/1.2/Thu Feb 7 19:44:41 2002//
+/sa04.xml/1.3/Thu Apr 3 14:58:00 2003//
+/sa05.xml/1.2/Thu Feb 7 19:44:41 2002//
+/sgml01.xml/1.2/Thu Feb 7 19:44:41 2002//
+/v-lang01.xml/1.2/Thu Feb 7 19:44:41 2002//
+/v-lang02.xml/1.2/Thu Feb 7 19:44:41 2002//
+/v-lang03.xml/1.2/Thu Feb 7 19:44:41 2002//
+/v-lang04.xml/1.2/Thu Feb 7 19:44:41 2002//
+/v-lang05.xml/1.2/Thu Feb 7 19:44:41 2002//
+/v-lang06.xml/1.2/Thu Feb 7 19:44:41 2002//
+D/out////
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/CVS/Repository b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/CVS/Repository
new file mode 100644
index 0000000000..c0debafe50
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/CVS/Repository
@@ -0,0 +1 @@
+2001/XML-Test-Suite/xmlconf/sun/valid
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/CVS/Root b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/CVS/Root
new file mode 100644
index 0000000000..3c7177e4bb
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/CVS/Root
@@ -0,0 +1 @@
+:pserver:anonymous@dev.w3.org:/sources/public
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtd00.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtd00.xml
new file mode 100644
index 0000000000..d92c44bda4
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtd00.xml
@@ -0,0 +1,7 @@
+<!DOCTYPE root [
+ <!ELEMENT root EMPTY>
+ <!ELEMENT x (#PCDATA)>
+ <!ELEMENT y (#PCDATA)*>
+]>
+
+<root/>
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtd01.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtd01.xml
new file mode 100644
index 0000000000..b0d6ae4ebd
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtd01.xml
@@ -0,0 +1,6 @@
+<!DOCTYPE root [
+ <!ELEMENT root EMPTY>
+ <!ENTITY % PE "this is a PE">
+ <!-- %these; %are; %not; %PEs; -->
+]>
+<root/>
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtdtest.dtd b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtdtest.dtd
new file mode 100644
index 0000000000..56539d0da4
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/dtdtest.dtd
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!ELEMENT root ANY>
+
+<!ELEMENT e EMPTY>
+
+<!ELEMENT once (e)>
+<!ELEMENT twice (e,e)>
+
+<!ENTITY % once-or-twice-a "(e,(e)?)">
+<!ENTITY % once-or-twice-b "((e),e?)">
+<!ENTITY % once-or-twice-c "((e),(e)?)">
+<!ENTITY % once-or-twice-d "(((e)),e?)">
+<!ENTITY % once-or-twice-e "(e,(((e)))?)">
+
+<!-- disallowed by spec; a document error, parser needn't report -->
+<!-- (e?,e) -->
+
+<!ELEMENT once-or-twice-a %once-or-twice-a;>
+<!ELEMENT once-or-twice-b %once-or-twice-b;>
+<!ELEMENT once-or-twice-c %once-or-twice-c;>
+<!ELEMENT once-or-twice-d %once-or-twice-d;>
+<!ELEMENT once-or-twice-e %once-or-twice-e;>
+
+<!-- disallowed by spec; a document error, parser needn't report -->
+<!--
+ <!ELEMENT once-or-twice-X (Xonce;|Xtwice)>
+ ... above, 'X' should be a percent sign but this comment
+ is being nice to those parsers that try to parse comments
+ (they shouldn't)
+-->
+
+<!ENTITY % once-or-more-a "(e+)">
+<!ENTITY % once-or-more-b "(e,e*)">
+<!ENTITY % once-or-more-c "((e)+)">
+<!ENTITY % once-or-more-d "((e),e*)">
+<!ENTITY % once-or-more-e "(e,(e)*)">
+
+<!ELEMENT once-or-more-a %once-or-more-a;>
+<!ELEMENT once-or-more-b %once-or-more-b;>
+<!ELEMENT once-or-more-c %once-or-more-c;>
+<!ELEMENT once-or-more-d %once-or-more-d;>
+<!ELEMENT once-or-more-e %once-or-more-e;>
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/element.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/element.xml
new file mode 100644
index 0000000000..9f02030aea
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/element.xml
@@ -0,0 +1,38 @@
+<!DOCTYPE root [
+<!ELEMENT root ANY>
+<!ELEMENT empty EMPTY>
+<!ELEMENT mixed1 (#PCDATA)>
+<!ELEMENT mixed2 (#PCDATA)*>
+<!ELEMENT mixed3 (#PCDATA|empty)*>
+]>
+
+<root>
+ <empty/>
+
+ <mixed1/>
+ <mixed1></mixed1>
+
+ <mixed2/>
+ <mixed2></mixed2>
+
+ <mixed3/>
+ <mixed3></mixed3>
+
+ <mixed1>allowed</mixed1>
+ <mixed1><![CDATA[<allowed>]]></mixed1>
+
+ <mixed2>also</mixed2>
+ <mixed2><![CDATA[<% illegal otherwise %>]]></mixed2>
+
+ <mixed3>moreover</mixed3>
+
+ <mixed1>allowed &amp; stuff</mixed1>
+
+ <mixed2>also</mixed2>
+
+ <mixed3>moreover <empty></empty> </mixed3>
+ <mixed3>moreover <empty/> </mixed3>
+ <mixed3><empty/> </mixed3>
+ <mixed3><empty/> too</mixed3>
+
+</root>
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/ext01.ent b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/ext01.ent
new file mode 100644
index 0000000000..c75c62943c
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/ext01.ent
@@ -0,0 +1,7 @@
+<?xml encoding="UTF-8"?>
+<!-- this is really ascii ... ;- -->
+<foo/>
+
+<bar/>
+
+<is> "dumber than a bag full of hammers" </is>
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/ext01.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/ext01.xml
new file mode 100644
index 0000000000..d826da98a5
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/ext01.xml
@@ -0,0 +1,9 @@
+<!DOCTYPE root [
+<!ELEMENT root ANY>
+<!ELEMENT foo ANY>
+<!ELEMENT bar ANY>
+<!ELEMENT is ANY>
+<!ENTITY root SYSTEM "ext01.ent">
+<!ENTITY null SYSTEM "null.ent">
+]>
+<root> &root; &root; &null; &null; </root>
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/ext02.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/ext02.xml
new file mode 100644
index 0000000000..af5440b7fd
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/ext02.xml
@@ -0,0 +1,8 @@
+<!DOCTYPE foo [
+<!ELEMENT foo (root*)>
+<!ELEMENT root EMPTY>
+<!ENTITY utf16b SYSTEM "../invalid/utf16b.xml">
+<!ENTITY utf16l SYSTEM "../invalid/utf16l.xml">
+]>
+
+<foo> &utf16b; &utf16l; </foo>
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa01.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa01.xml
new file mode 100644
index 0000000000..536cb4b06e
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa01.xml
@@ -0,0 +1,10 @@
+<?xml version='1.0' standalone='no'?>
+
+<!DOCTYPE root SYSTEM "sa.dtd">
+
+<root>
+ <child>
+ The whitespace before and after this element keeps
+ this from being standalone.
+ </child>
+</root>
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa02.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa02.xml
new file mode 100644
index 0000000000..bd938b034e
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa02.xml
@@ -0,0 +1,30 @@
+<?xml version='1.0' standalone='no'?>
+
+<!DOCTYPE attributes SYSTEM "../valid/sa.dtd" [
+ <!ENTITY internal " number99">
+]>
+
+ <!-- sync with ../invalid/not-sa02.xml -->
+
+ <!--
+ lots of normalized/defaulted attributes
+ keep this from being standalone
+
+ XXX not the best basis for negative tests!!
+ -->
+
+<attributes
+ notation = " nonce "
+ nmtoken = " this-gets-normalized "
+ nmtokens = " this
+ also gets normalized "
+ id = " &internal; "
+ idref = " &internal;
+ "
+ idrefs = " &internal; &internal; &internal;"
+ entity = " unparsed-1 "
+ entities = "unparsed-1
+ unparsed-2
+"
+ cdata = "nothing happens to this one!"
+ />
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa03.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa03.xml
new file mode 100644
index 0000000000..2a13a005ed
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa03.xml
@@ -0,0 +1,25 @@
+<?xml version='1.0' standalone='no'?>
+
+<!DOCTYPE attributes SYSTEM "sa.dtd" [
+ <!--
+ This one is almost standalone since the values
+ are pre-normalized in this document, and the
+ defaulted attribute is explicit.
+
+ BUT the entity refs are both external and need
+ normalization.
+ -->
+]>
+
+<attributes
+ token = "b"
+ notation = "foo"
+ nmtoken = "this-gets-normalized"
+ nmtokens = "this also gets normalized"
+ id = "&internal;"
+ idref = "&internal;"
+ idrefs = "&internal; &internal; &internal;"
+ entity = "unparsed-1"
+ entities = "unparsed-1 unparsed-2"
+ cdata = "nothing happens to this one!"
+ />
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa04.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa04.xml
new file mode 100644
index 0000000000..d4e12aa6e6
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/not-sa04.xml
@@ -0,0 +1,30 @@
+<?xml version='1.0' standalone='no'?>
+
+<!DOCTYPE attributes SYSTEM "sa.dtd" [
+ <!--
+ This one isn't standalone since it's got a defaulted
+ attribute (token) and one needing normalization
+ (notation).
+ -->
+
+ <!ATTLIST attributes
+ token (a|b|c) "a"
+ notation (nonce|foo|bar) #IMPLIED
+ >
+ <!ENTITY internal "internal&number;">
+ <!ENTITY number "42">
+]>
+
+<attributes
+ notation = " nonce "
+ nmtoken = "this-gets-normalized"
+ nmtokens = "this also gets normalized"
+ id = "&internal;"
+ idref = "&internal;"
+ idrefs = "&internal; &internal; &internal;"
+ entity = "unparsed-1"
+ entities = "unparsed-1 unparsed-2"
+ cdata = "nothing happens to this one!"
+ />
+
+<?pi equals three?>
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/notation01.dtd b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/notation01.dtd
new file mode 100644
index 0000000000..23726851aa
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/notation01.dtd
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!NOTATION GIF PUBLIC
+ "+//ISBN 0-7923-9432-1::Graphic Notation//NOTATION
+ CompuServe Graphic Interchange Format//EN">
+
+<!ELEMENT test (#PCDATA) >
+
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/notation01.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/notation01.xml
new file mode 100644
index 0000000000..4b8bc10e31
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/notation01.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0"?>
+<!DOCTYPE test SYSTEM "notation01.dtd" [
+ <!ENTITY applydsssl SYSTEM "applydsssl.gif" NDATA GIF>
+]>
+<test>test</test>
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/null.ent b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/null.ent
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/null.ent
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/optional.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/optional.xml
new file mode 100644
index 0000000000..fe8d482510
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/optional.xml
@@ -0,0 +1,50 @@
+<!DOCTYPE root SYSTEM "dtdtest.dtd">
+<root>
+ <!--
+ This primarily bangs on different ways of expressing
+ optionality in content models.
+ -->
+ <once><e/></once>
+
+ <twice><e/><e/></twice>
+
+
+ <once-or-twice-a><e/></once-or-twice-a>
+ <once-or-twice-b><e/></once-or-twice-b>
+ <once-or-twice-c><e/></once-or-twice-c>
+ <once-or-twice-d><e/></once-or-twice-d>
+ <once-or-twice-e><e/></once-or-twice-e>
+
+ <once-or-twice-a><e/><e/></once-or-twice-a>
+ <once-or-twice-b><e/><e/></once-or-twice-b>
+ <once-or-twice-c><e/><e/></once-or-twice-c>
+ <once-or-twice-d><e/><e/></once-or-twice-d>
+ <once-or-twice-e><e/><e/></once-or-twice-e>
+
+
+ <once-or-more-a><e/></once-or-more-a>
+ <once-or-more-b><e/></once-or-more-b>
+ <once-or-more-c><e/></once-or-more-c>
+ <once-or-more-d><e/></once-or-more-d>
+ <once-or-more-e><e/></once-or-more-e>
+
+ <once-or-more-a><e/><e/></once-or-more-a>
+ <once-or-more-b><e/><e/></once-or-more-b>
+ <once-or-more-c><e/><e/></once-or-more-c>
+ <once-or-more-d><e/><e/></once-or-more-d>
+ <once-or-more-e><e/><e/></once-or-more-e>
+
+ <once-or-more-a><e/><e/><e/></once-or-more-a>
+ <once-or-more-b><e/><e/><e/></once-or-more-b>
+ <once-or-more-c><e/><e/><e/></once-or-more-c>
+ <once-or-more-d><e/><e/><e/></once-or-more-d>
+ <once-or-more-e><e/><e/><e/></once-or-more-e>
+
+ <once-or-more-a><e/><e/><e/><e/></once-or-more-a>
+ <once-or-more-b><e/><e/><e/><e/></once-or-more-b>
+ <once-or-more-c><e/><e/><e/><e/></once-or-more-c>
+ <once-or-more-d><e/><e/><e/><e/></once-or-more-d>
+ <once-or-more-e><e/><e/><e/><e/></once-or-more-e>
+
+
+</root>
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/CVS/Entries b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/CVS/Entries
new file mode 100644
index 0000000000..469e0ed46a
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/CVS/Entries
@@ -0,0 +1,28 @@
+/dtd00.xml/1.1.1.1/Wed Oct 17 09:52:58 2001//
+/dtd01.xml/1.1.1.1/Wed Oct 17 09:52:58 2001//
+/element.xml/1.1.1.1/Wed Oct 17 09:52:58 2001//
+/ext01.xml/1.1.1.1/Wed Oct 17 09:52:58 2001//
+/ext02.xml/1.1.1.1/Wed Oct 17 09:52:58 2001//
+/not-sa01.xml/1.2/Thu Feb 7 19:44:41 2002//
+/not-sa02.xml/1.2/Thu Feb 7 19:44:41 2002//
+/not-sa03.xml/1.2/Thu Feb 7 19:44:41 2002//
+/not-sa04.xml/1.2/Thu Feb 7 19:44:41 2002//
+/notation01.xml/1.2/Thu Feb 7 19:44:41 2002//
+/optional.xml/1.4/Mon May 20 15:33:35 2002//
+/pe00.xml/1.1.1.1/Wed Oct 17 09:52:58 2001//
+/pe02.xml/1.1.1.1/Wed Oct 17 09:52:58 2001//
+/pe03.xml/1.1/Thu Feb 21 18:47:07 2002//
+/required00.xml/1.1.1.1/Wed Oct 17 09:52:58 2001//
+/sa01.xml/1.1.1.1/Wed Oct 17 09:52:58 2001//
+/sa02.xml/1.2/Thu Feb 7 19:44:41 2002//
+/sa03.xml/1.2/Thu Feb 7 19:44:41 2002//
+/sa04.xml/1.2/Thu Feb 7 19:44:41 2002//
+/sa05.xml/1.2/Thu Feb 7 19:44:41 2002//
+/sgml01.xml/1.1.1.1/Wed Oct 17 09:52:58 2001//
+/v-lang01.xml/1.1.1.1/Wed Oct 17 09:52:58 2001//
+/v-lang02.xml/1.1.1.1/Wed Oct 17 09:52:58 2001//
+/v-lang03.xml/1.1.1.1/Wed Oct 17 09:52:58 2001//
+/v-lang04.xml/1.1.1.1/Wed Oct 17 09:52:58 2001//
+/v-lang05.xml/1.1.1.1/Wed Oct 17 09:52:58 2001//
+/v-lang06.xml/1.1.1.1/Wed Oct 17 09:52:58 2001//
+D
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/CVS/Repository b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/CVS/Repository
new file mode 100644
index 0000000000..b244dd58f6
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/CVS/Repository
@@ -0,0 +1 @@
+2001/XML-Test-Suite/xmlconf/sun/valid/out
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/CVS/Root b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/CVS/Root
new file mode 100644
index 0000000000..3c7177e4bb
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/CVS/Root
@@ -0,0 +1 @@
+:pserver:anonymous@dev.w3.org:/sources/public
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/dtd00.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/dtd00.xml
new file mode 100644
index 0000000000..ef2fc53c2f
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/dtd00.xml
@@ -0,0 +1 @@
+<root></root> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/dtd01.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/dtd01.xml
new file mode 100644
index 0000000000..ef2fc53c2f
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/dtd01.xml
@@ -0,0 +1 @@
+<root></root> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/element.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/element.xml
new file mode 100644
index 0000000000..f1aa64dbab
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/element.xml
@@ -0,0 +1 @@
+<root>&#10; <empty></empty>&#10;&#10; <mixed1></mixed1>&#10; <mixed1></mixed1>&#10;&#10; <mixed2></mixed2>&#10; <mixed2></mixed2>&#10;&#10; <mixed3></mixed3>&#10; <mixed3></mixed3>&#10;&#10; <mixed1>allowed</mixed1>&#10; <mixed1>&lt;allowed&gt;</mixed1>&#10;&#10; <mixed2>also</mixed2>&#10; <mixed2>&lt;% illegal otherwise %&gt;</mixed2>&#10;&#10; <mixed3>moreover</mixed3>&#10;&#10; <mixed1>allowed &amp; stuff</mixed1>&#10;&#10; <mixed2>also</mixed2>&#10;&#10; <mixed3>moreover <empty></empty> </mixed3>&#10; <mixed3>moreover <empty></empty> </mixed3>&#10; <mixed3><empty></empty> </mixed3>&#10; <mixed3><empty></empty> too</mixed3>&#10;&#10;</root> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/ext01.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/ext01.xml
new file mode 100644
index 0000000000..a8d213463d
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/ext01.xml
@@ -0,0 +1 @@
+<root> &#10;&#10;<foo></foo>&#10;&#10;<bar></bar>&#10;&#10;<is> &quot;dumber than a bag full of hammers&quot; </is>&#10; &#10;&#10;<foo></foo>&#10;&#10;<bar></bar>&#10;&#10;<is> &quot;dumber than a bag full of hammers&quot; </is>&#10; </root> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/ext02.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/ext02.xml
new file mode 100644
index 0000000000..90718f8e55
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/ext02.xml
@@ -0,0 +1 @@
+<foo> &#10;<root></root>&#10; &#10;<root></root>&#10; </foo> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa01.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa01.xml
new file mode 100644
index 0000000000..12ce349ae2
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa01.xml
@@ -0,0 +1,6 @@
+<!DOCTYPE root [
+<!NOTATION bar SYSTEM 'file:/dev/tty'>
+<!NOTATION foo PUBLIC '-//public id//foo' 'file:/dev/null'>
+<!NOTATION nonce SYSTEM 'file:/dev/null'>
+]>
+<root>&#10; <child>&#10; The whitespace before and after this element keeps&#10; this from being standalone.&#10; </child>&#10;</root> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa02.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa02.xml
new file mode 100644
index 0000000000..0f31afb891
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa02.xml
@@ -0,0 +1,6 @@
+<!DOCTYPE attributes [
+<!NOTATION bar SYSTEM 'file:/dev/tty'>
+<!NOTATION foo PUBLIC '-//public id//foo' 'file:/dev/null'>
+<!NOTATION nonce SYSTEM 'file:/dev/null'>
+]>
+<attributes cdata="nothing happens to this one!" entities="unparsed-1 unparsed-2" entity="unparsed-1" id="number99" idref="number99" idrefs="number99 number99 number99" nmtoken="this-gets-normalized" nmtokens="this also gets normalized" notation="nonce" token="a"></attributes> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa03.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa03.xml
new file mode 100644
index 0000000000..4eba2aa55e
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa03.xml
@@ -0,0 +1,6 @@
+<!DOCTYPE attributes [
+<!NOTATION bar SYSTEM 'file:/dev/tty'>
+<!NOTATION foo PUBLIC '-//public id//foo' 'file:/dev/null'>
+<!NOTATION nonce SYSTEM 'file:/dev/null'>
+]>
+<attributes cdata="nothing happens to this one!" entities="unparsed-1 unparsed-2" entity="unparsed-1" id="internal42" idref="internal42" idrefs="internal42 internal42 internal42" nmtoken="this-gets-normalized" nmtokens="this also gets normalized" notation="foo" token="b"></attributes> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa04.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa04.xml
new file mode 100644
index 0000000000..70e09f6f20
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/not-sa04.xml
@@ -0,0 +1,6 @@
+<!DOCTYPE attributes [
+<!NOTATION bar SYSTEM 'file:/dev/tty'>
+<!NOTATION foo PUBLIC '-//public id//foo' 'file:/dev/null'>
+<!NOTATION nonce SYSTEM 'file:/dev/null'>
+]>
+<attributes cdata="nothing happens to this one!" entities="unparsed-1 unparsed-2" entity="unparsed-1" id="internal42" idref="internal42" idrefs="internal42 internal42 internal42" nmtoken="this-gets-normalized" nmtokens="this also gets normalized" notation="nonce" token="a"></attributes><?pi equals three?> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/notation01.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/notation01.xml
new file mode 100644
index 0000000000..cbb7634d9a
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/notation01.xml
@@ -0,0 +1,4 @@
+<!DOCTYPE test [
+<!NOTATION GIF PUBLIC '+//ISBN 0-7923-9432-1::Graphic Notation//NOTATION CompuServe Graphic Interchange Format//EN'>
+]>
+<test>test</test> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/optional.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/optional.xml
new file mode 100644
index 0000000000..d131489085
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/optional.xml
@@ -0,0 +1 @@
+<root>&#10; &#10; <once><e></e></once>&#10;&#10; <twice><e></e><e></e></twice>&#10;&#10;&#10; <once-or-twice-a><e></e></once-or-twice-a>&#10; <once-or-twice-b><e></e></once-or-twice-b>&#10; <once-or-twice-c><e></e></once-or-twice-c>&#10; <once-or-twice-d><e></e></once-or-twice-d>&#10; <once-or-twice-e><e></e></once-or-twice-e>&#10;&#10; <once-or-twice-a><e></e><e></e></once-or-twice-a>&#10; <once-or-twice-b><e></e><e></e></once-or-twice-b>&#10; <once-or-twice-c><e></e><e></e></once-or-twice-c>&#10; <once-or-twice-d><e></e><e></e></once-or-twice-d>&#10; <once-or-twice-e><e></e><e></e></once-or-twice-e>&#10;&#10;&#10; <once-or-more-a><e></e></once-or-more-a>&#10; <once-or-more-b><e></e></once-or-more-b>&#10; <once-or-more-c><e></e></once-or-more-c>&#10; <once-or-more-d><e></e></once-or-more-d>&#10; <once-or-more-e><e></e></once-or-more-e>&#10;&#10; <once-or-more-a><e></e><e></e></once-or-more-a>&#10; <once-or-more-b><e></e><e></e></once-or-more-b>&#10; <once-or-more-c><e></e><e></e></once-or-more-c>&#10; <once-or-more-d><e></e><e></e></once-or-more-d>&#10; <once-or-more-e><e></e><e></e></once-or-more-e>&#10;&#10; <once-or-more-a><e></e><e></e><e></e></once-or-more-a>&#10; <once-or-more-b><e></e><e></e><e></e></once-or-more-b>&#10; <once-or-more-c><e></e><e></e><e></e></once-or-more-c>&#10; <once-or-more-d><e></e><e></e><e></e></once-or-more-d>&#10; <once-or-more-e><e></e><e></e><e></e></once-or-more-e>&#10;&#10; <once-or-more-a><e></e><e></e><e></e><e></e></once-or-more-a>&#10; <once-or-more-b><e></e><e></e><e></e><e></e></once-or-more-b>&#10; <once-or-more-c><e></e><e></e><e></e><e></e></once-or-more-c>&#10; <once-or-more-d><e></e><e></e><e></e><e></e></once-or-more-d>&#10; <once-or-more-e><e></e><e></e><e></e><e></e></once-or-more-e>&#10;&#10;&#10;</root> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/pe00.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/pe00.xml
new file mode 100644
index 0000000000..7d48bbe463
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/pe00.xml
@@ -0,0 +1 @@
+<root>La Peste: Albert Camus,&#10;© 1947 Éditions Gallimard. All rights reserved</root> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/pe02.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/pe02.xml
new file mode 100644
index 0000000000..6bc066028e
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/pe02.xml
@@ -0,0 +1 @@
+<test>This sample shows a error-prone method.</test> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/pe03.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/pe03.xml
new file mode 100644
index 0000000000..eed428aa66
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/pe03.xml
@@ -0,0 +1 @@
+<root><p>An ampersand (&amp;) may be escaped&#10;numerically (&amp;#38) or with a general entity (&amp;amp;).</p></root> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/required00.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/required00.xml
new file mode 100644
index 0000000000..f06dcb9f2c
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/required00.xml
@@ -0,0 +1 @@
+<root req="foo"></root> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa01.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa01.xml
new file mode 100644
index 0000000000..188f8ef629
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa01.xml
@@ -0,0 +1 @@
+<root>&#10; <child>&#10; The whitespace around this element would be&#10; invalid as standalone were the DTD external.&#10; </child>&#10;</root> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa02.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa02.xml
new file mode 100644
index 0000000000..10e4c648d5
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa02.xml
@@ -0,0 +1,6 @@
+<!DOCTYPE attributes [
+<!NOTATION bar SYSTEM 'file:/dev/tty'>
+<!NOTATION foo PUBLIC '-//public id//foo' 'file:/dev/null'>
+<!NOTATION nonce SYSTEM 'file:/dev/null'>
+]>
+<attributes cdata="nothing happens to this one!" entities="unparsed-1 unparsed-2" entity="unparsed-1" id="internal42" idref="internal42" idrefs="internal42 internal42 internal42" nmtoken="this-gets-normalized" nmtokens="this also gets normalized" notation="nonce" token="a"></attributes> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa03.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa03.xml
new file mode 100644
index 0000000000..4eba2aa55e
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa03.xml
@@ -0,0 +1,6 @@
+<!DOCTYPE attributes [
+<!NOTATION bar SYSTEM 'file:/dev/tty'>
+<!NOTATION foo PUBLIC '-//public id//foo' 'file:/dev/null'>
+<!NOTATION nonce SYSTEM 'file:/dev/null'>
+]>
+<attributes cdata="nothing happens to this one!" entities="unparsed-1 unparsed-2" entity="unparsed-1" id="internal42" idref="internal42" idrefs="internal42 internal42 internal42" nmtoken="this-gets-normalized" nmtokens="this also gets normalized" notation="foo" token="b"></attributes> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa04.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa04.xml
new file mode 100644
index 0000000000..70e09f6f20
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa04.xml
@@ -0,0 +1,6 @@
+<!DOCTYPE attributes [
+<!NOTATION bar SYSTEM 'file:/dev/tty'>
+<!NOTATION foo PUBLIC '-//public id//foo' 'file:/dev/null'>
+<!NOTATION nonce SYSTEM 'file:/dev/null'>
+]>
+<attributes cdata="nothing happens to this one!" entities="unparsed-1 unparsed-2" entity="unparsed-1" id="internal42" idref="internal42" idrefs="internal42 internal42 internal42" nmtoken="this-gets-normalized" nmtokens="this also gets normalized" notation="nonce" token="a"></attributes><?pi equals three?> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa05.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa05.xml
new file mode 100644
index 0000000000..931120d7fe
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sa05.xml
@@ -0,0 +1,6 @@
+<!DOCTYPE root [
+<!NOTATION bar SYSTEM 'file:/dev/tty'>
+<!NOTATION foo PUBLIC '-//public id//foo' 'file:/dev/null'>
+<!NOTATION nonce SYSTEM 'file:/dev/null'>
+]>
+<root><child>&#10; No whitespace before or after this standalone element.&#10;</child></root> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sgml01.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sgml01.xml
new file mode 100644
index 0000000000..8c31029f02
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/sgml01.xml
@@ -0,0 +1 @@
+<root position="first" status="initial-draft"></root> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang01.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang01.xml
new file mode 100644
index 0000000000..9752885abe
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang01.xml
@@ -0,0 +1 @@
+<root xml:lang="en"></root> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang02.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang02.xml
new file mode 100644
index 0000000000..cdf492e87c
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang02.xml
@@ -0,0 +1 @@
+<root xml:lang="en-IN"></root> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang03.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang03.xml
new file mode 100644
index 0000000000..d9d68a44ce
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang03.xml
@@ -0,0 +1 @@
+<root xml:lang="i-klingon-whorf"></root> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang04.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang04.xml
new file mode 100644
index 0000000000..cda324b178
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang04.xml
@@ -0,0 +1 @@
+<root xml:lang="x-dialect-valleygirl"></root> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang05.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang05.xml
new file mode 100644
index 0000000000..fa3d57a4db
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang05.xml
@@ -0,0 +1 @@
+<root xml:lang="DE"></root> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang06.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang06.xml
new file mode 100644
index 0000000000..451e36b0a1
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/out/v-lang06.xml
@@ -0,0 +1 @@
+<root xml:lang="X-Java"></root> \ No newline at end of file
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe00.dtd b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe00.dtd
new file mode 100644
index 0000000000..547457cc4b
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe00.dtd
@@ -0,0 +1,6 @@
+<!ELEMENT root (#PCDATA)>
+<!-- Example from XML spec 1.0 section 4.5 -->
+<!ENTITY % pub "&#xc9;ditions Gallimard">
+<!ENTITY rights "All rights reserved">
+<!ENTITY book "La Peste: Albert Camus,
+&#xa9; 1947 %pub;. &rights;">
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe00.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe00.xml
new file mode 100644
index 0000000000..af706647c8
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe00.xml
@@ -0,0 +1,2 @@
+<!DOCTYPE root SYSTEM "pe00.dtd">
+<root>&book;</root>
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe01.dtd b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe01.dtd
new file mode 100644
index 0000000000..59997b71eb
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe01.dtd
@@ -0,0 +1,6 @@
+<!ENTITY % bad-pe SYSTEM "pe01.ent">
+<!ELEMENT root EMPTY>
+<!ATTLIST root
+ something CDATA "%not-pe;"
+ evil (doctor | scott) "doctor"
+ >
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe01.ent b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe01.ent
new file mode 100644
index 0000000000..3f30827c7e
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe01.ent
@@ -0,0 +1,2 @@
+This is not a legal parameter entity, because
+it does not match the "markupdecl" production.
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe01.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe01.xml
new file mode 100644
index 0000000000..8003bbfa99
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe01.xml
@@ -0,0 +1,2 @@
+<!DOCTYPE root SYSTEM "pe01.dtd">
+<root/>
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe02.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe02.xml
new file mode 100644
index 0000000000..44edb62dd6
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe02.xml
@@ -0,0 +1,9 @@
+<?xml version='1.0'?>
+<!DOCTYPE test [
+<!ELEMENT test (#PCDATA) >
+<!ENTITY % xx '&#37;zz;'>
+<!ENTITY % zz '&#60;!ENTITY tricky "error-prone" >' >
+%xx;
+]>
+<test>This sample shows a &tricky; method.</test>
+<!-- Example 2 from XML spec 1.0 Appendix D -->
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe03.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe03.xml
new file mode 100644
index 0000000000..407bd1c5fe
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/pe03.xml
@@ -0,0 +1,8 @@
+<!DOCTYPE root [
+<!ELEMENT root (p)>
+<!ELEMENT p (#PCDATA)>
+<!-- Example 1 from XML spec 1.0 Appendix D -->
+<!ENTITY example "<p>An ampersand (&#38;#38;) may be escaped
+numerically (&#38;#38;#38) or with a general entity (&amp;amp;).</p>" >
+]>
+<root>&example;</root>
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/required00.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/required00.xml
new file mode 100644
index 0000000000..4c63d36042
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/required00.xml
@@ -0,0 +1,8 @@
+<!DOCTYPE root [
+ <!ELEMENT root EMPTY>
+ <!ATTLIST root
+ req CDATA #REQUIRED
+ >
+]>
+
+<root req="foo"/>
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa.dtd b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa.dtd
new file mode 100644
index 0000000000..a0733eb88c
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa.dtd
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+ <!ELEMENT root (child|attributes)*>
+ <!ELEMENT child (#PCDATA)>
+ <!ELEMENT attributes EMPTY>
+
+ <!--
+ 2.9 gives validity constraints applying to attributes
+ in standalone docs: no external defaults or decls
+ causing normalization.
+
+ 3.3.3 describes the normalization rules
+ -->
+
+ <!ATTLIST attributes
+ token (a|b|c) "a"
+ notation (nonce|foo|bar) #IMPLIED
+ nmtoken NMTOKEN #IMPLIED
+ nmtokens NMTOKENS #IMPLIED
+ id ID #IMPLIED
+ idref IDREF #IMPLIED
+ idrefs IDREFS #IMPLIED
+ entity ENTITY #IMPLIED
+ entities ENTITIES #IMPLIED
+ cdata CDATA #IMPLIED
+ >
+
+ <!-- this needs normalization when used as an ID -->
+ <!ENTITY internal " internal&number; ">
+ <!ENTITY number "42">
+
+ <!NOTATION nonce SYSTEM "file:/dev/null">
+ <!NOTATION foo PUBLIC "-//public id//foo" "file:/dev/null">
+ <!NOTATION bar SYSTEM "file:/dev/tty">
+
+ <!ENTITY unparsed-1 PUBLIC "-//some public//ID" "file:/dev/console"
+ NDATA nonce>
+ <!ENTITY unparsed-2 SYSTEM "scheme://host/data"
+ NDATA foo>
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa01.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa01.xml
new file mode 100644
index 0000000000..15ed49579f
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa01.xml
@@ -0,0 +1,13 @@
+<?xml version='1.0' standalone='yes'?>
+
+<!DOCTYPE root [
+ <!ELEMENT root (child)*>
+ <!ELEMENT child (#PCDATA)>
+]>
+
+<root>
+ <child>
+ The whitespace around this element would be
+ invalid as standalone were the DTD external.
+ </child>
+</root>
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa02.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa02.xml
new file mode 100644
index 0000000000..7a416601fa
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa02.xml
@@ -0,0 +1,52 @@
+<?xml version='1.0' standalone='yes'?>
+
+<!DOCTYPE attributes [
+ <!ELEMENT attributes EMPTY>
+
+ <!--
+ 2.9 gives validity constraints applying to attributes
+ in standalone docs: no external defaults or decls
+ causing normalization.
+
+ 3.3.3 describes the normalization rules
+ -->
+
+ <!ATTLIST attributes
+ token (a|b|c) "a"
+ notation (nonce|foo|bar) #IMPLIED
+ nmtoken NMTOKEN #IMPLIED
+ nmtokens NMTOKENS #IMPLIED
+ id ID #IMPLIED
+ idref IDREF #IMPLIED
+ idrefs IDREFS #IMPLIED
+ entity ENTITY #IMPLIED
+ entities ENTITIES #IMPLIED
+ cdata CDATA #IMPLIED
+ >
+
+ <!ENTITY internal " internal&number; ">
+ <!ENTITY number "42">
+
+ <!NOTATION nonce SYSTEM "file:/dev/null">
+ <!NOTATION foo PUBLIC "-//public id//foo" "file:/dev/null">
+ <!NOTATION bar SYSTEM "file:/dev/tty">
+
+ <!ENTITY unparsed-1 PUBLIC "-//some public//ID" "file:/dev/console"
+ NDATA nonce>
+ <!ENTITY unparsed-2 SYSTEM "scheme://host/data"
+ NDATA foo>
+]>
+
+<attributes
+ notation = " nonce "
+ nmtoken = " this-gets-normalized "
+ nmtokens = " this
+ also gets normalized "
+ id = " &internal; "
+ idref = " &internal;
+ "
+ idrefs = " &internal; &internal; &internal;"
+ entity = " unparsed-1 "
+ entities = "unparsed-1 unparsed-2"
+ cdata = "nothing happens to this one!"
+ />
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa03.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa03.xml
new file mode 100644
index 0000000000..194cb82457
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa03.xml
@@ -0,0 +1,28 @@
+<?xml version='1.0' standalone='yes'?>
+
+<!DOCTYPE attributes SYSTEM "sa.dtd" [
+ <!--
+ This one is standalone since the values are
+ pre-normalized in this document, and the
+ defaulted attribute is explicit.
+
+ Similarly the entity refs are internal and
+ don't need normalization ... the unparsed
+ entities (and entities) aren't "references"
+ -->
+ <!ENTITY internal "internal&number;">
+ <!ENTITY number "42">
+]>
+
+<attributes
+ token = "b"
+ notation = "foo"
+ nmtoken = "this-gets-normalized"
+ nmtokens = "this also gets normalized"
+ id = "&internal;"
+ idref = "&internal;"
+ idrefs = "&internal; &internal; &internal;"
+ entity = "unparsed-1"
+ entities = "unparsed-1 unparsed-2"
+ cdata = "nothing happens to this one!"
+ />
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa04.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa04.xml
new file mode 100644
index 0000000000..79df352fa8
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa04.xml
@@ -0,0 +1,38 @@
+<?xml version='1.0' standalone='yes'?>
+
+<!DOCTYPE attributes SYSTEM "sa.dtd" [
+ <!--
+ This one is standalone since the values are
+ pre-normalized in this document, except that
+ one defaulted attribute is (re)defined internally
+ and so is one normalized one.
+
+ Similarly the entity refs are internal. Unparsed
+ entities and notations are not listed among the
+ items that must not be externally declared in
+ standalone documents, even though processors must
+ in theory report their identifiers.
+
+ -->
+
+ <!ATTLIST attributes
+ token (a|b|c) "a"
+ notation (nonce|foo|bar) #IMPLIED
+ >
+ <!ENTITY internal "internal&number;">
+ <!ENTITY number "42">
+]>
+
+<attributes
+ notation = " nonce "
+ nmtoken = "this-gets-normalized"
+ nmtokens = "this also gets normalized"
+ id = "&internal;"
+ idref = "&internal;"
+ idrefs = "&internal; &internal; &internal;"
+ entity = "unparsed-1"
+ entities = "unparsed-1 unparsed-2"
+ cdata = "nothing happens to this one!"
+ />
+
+<?pi equals three?>
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa05.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa05.xml
new file mode 100644
index 0000000000..45180bca63
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sa05.xml
@@ -0,0 +1,7 @@
+<?xml version='1.0' standalone='yes'?>
+
+<!DOCTYPE root SYSTEM "sa.dtd">
+
+<root><child>
+ No whitespace before or after this standalone element.
+</child></root>
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sgml01.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sgml01.xml
new file mode 100644
index 0000000000..6cfdfee07d
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/sgml01.xml
@@ -0,0 +1,14 @@
+<!DOCTYPE root [
+ <!ELEMENT root EMPTY>
+ <!--
+ SGML dislikes token reuse. It's legal XML, so any
+ XML parser must accept it, though it's discouraged
+ in documents "for interoperability"
+ -->
+ <!ATTLIST root
+ status (initial-draft|revision|final) "initial-draft"
+ position (first|intermediate|final) "first"
+ >
+]>
+
+<root/>
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang01.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang01.xml
new file mode 100644
index 0000000000..4490f77530
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang01.xml
@@ -0,0 +1,5 @@
+<!DOCTYPE root [
+<!ELEMENT root EMPTY>
+<!ATTLIST root xml:lang CDATA #IMPLIED>
+]>
+<root xml:lang="en"/>
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang02.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang02.xml
new file mode 100644
index 0000000000..7d2b538921
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang02.xml
@@ -0,0 +1,6 @@
+<!DOCTYPE root [
+<!ELEMENT root EMPTY>
+<!ATTLIST root xml:lang CDATA #IMPLIED>
+]>
+<root xml:lang="en-IN"/>
+
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang03.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang03.xml
new file mode 100644
index 0000000000..678f3cc687
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang03.xml
@@ -0,0 +1,6 @@
+<!DOCTYPE root [
+<!ELEMENT root EMPTY>
+<!ATTLIST root xml:lang CDATA #IMPLIED>
+]>
+<root xml:lang="i-klingon-whorf"/>
+
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang04.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang04.xml
new file mode 100644
index 0000000000..6f7cb4a8da
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang04.xml
@@ -0,0 +1,6 @@
+<!DOCTYPE root [
+<!ELEMENT root EMPTY>
+<!ATTLIST root xml:lang CDATA #IMPLIED>
+]>
+<root xml:lang="x-dialect-valleygirl"/>
+
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang05.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang05.xml
new file mode 100644
index 0000000000..135b9c887a
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang05.xml
@@ -0,0 +1,6 @@
+<!DOCTYPE root [
+<!ELEMENT root EMPTY>
+<!ATTLIST root xml:lang CDATA #IMPLIED>
+]>
+<root xml:lang="DE"/>
+
diff --git a/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang06.xml b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang06.xml
new file mode 100644
index 0000000000..dc64fae993
--- /dev/null
+++ b/tests/auto/corelib/xml/qxmlstream/XML-Test-Suite/xmlconf/sun/valid/v-lang06.xml
@@ -0,0 +1,6 @@
+<!DOCTYPE root [
+<!ELEMENT root EMPTY>
+<!ATTLIST root xml:lang CDATA #IMPLIED>
+]>
+<root xml:lang="X-Java"/>
+