--- /dev/null
+ERROR Error on line 2 char 1: Invalid UTF-8 encoded text in name - not valid 'abcäöü'
--- /dev/null
+<abcäöü>
+abcäöü
+</abcäöü>
--- /dev/null
+ERROR Error on line 3: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &
--- /dev/null
+<foo bar="ab
+cd
+<
+de
+fg"></foo>
--- /dev/null
+ERROR Error on line 1 char 10: Odd character '≈', expected a '=' after attribute name 'bar' of element 'foo'
--- /dev/null
+<foo bar ≈"baz"></foo>
--- /dev/null
+ELEMENT 'foo'
+END 'foo'
+ERROR Error on line 1 char 6: Odd character '≻', expected a '>' character to end the empty-element tag 'foo'
--- /dev/null
+ELEMENT 'foo'
+ TEXT ''
+ERROR Error on line 1 char 12: '≻' is not a valid character following the close element name 'foo'; the allowed character is '>'
--- /dev/null
+<foo></foo ≻
--- /dev/null
+ELEMENT 'foo'
+ERROR Error on line 3 char 2: Document ended unexpectedly with elements still open - 'foo' was the last element opened
--- /dev/null
+<foo>
+abc
--- /dev/null
+ERROR Error on line 1: Failed to parse '', which should have been a digit inside a character reference (ê for example) - perhaps the digit is too large
--- /dev/null
+<foo bar="&#𝐀;"></foo>
--- /dev/null
+ERROR Error on line 2 char 2: Odd character '>', expected a '=' after attribute name 'bar' of element 'fail'
--- /dev/null
+<fail foo="foo" bar
+></foo>
--- /dev/null
+ELEMENT 'foo'
+ TEXT ''
+ERROR Error on line 2 char 2: Document ended unexpectedly inside the close tag for element 'foo'
--- /dev/null
+<foo></foo
--- /dev/null
+ELEMENT 'abcäöü'
+ TEXT '
+abcäöü
+'
+END 'abcäöü'
--- /dev/null
+<abcäöü>
+abcäöü
+</abcäöü>
--- /dev/null
+ELEMENT 'foo'
+bar="a b c d e𝐀"
+ TEXT ''
+END 'foo'
--- /dev/null
+<foo bar="a b
+c\rd\r
+e𝐀"></foo>
--- /dev/null
+ELEMENT 'foo'
+ TEXT '
+'
+ ELEMENT 'bar'
+ TEXT '
+/* gmarkup.c - Simple XML-like parser
+ *
+ * Copyright 2000, 2003 Red Hat, Inc.
+ * Copyright 2007, 2008 Ryan Lortie <desrt@desrt.ca>
+ *
+ * GLib is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * GLib is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with GLib; see the file COPYING.LIB. If not,
+ * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+'
+ END 'bar'
+ TEXT '
+'
+END 'foo'
--- /dev/null
+<foo>
+<bar>
+/* gmarkup.c - Simple XML-like parser
+ *
+ * Copyright 2000, 2003 Red Hat, Inc.
+ * Copyright 2007, 2008 Ryan Lortie <desrt@desrt.ca>
+ *
+ * GLib is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * GLib is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with GLib; see the file COPYING.LIB. If not,
+ * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+</bar>
+</foo>