<beginfold id='1'><?</beginfold id='1'>xml version="1.0" encoding="UTF-8"<endfold id='1'>?></endfold id='1'>
<beginfold id='2'><!</beginfold id='2'>DOCTYPE language SYSTEM "language.dtd"
<beginfold id='3'>[</beginfold id='3'>
    <beginfold id='4'><!--</beginfold id='4'> comment line 1
         comment line 2 <endfold id='4'>--></endfold id='4'>
    <!ENTITY name    "(?![0-9])[\w_:][\w.:_-]*">
    <!ENTITY entref  "&amp;(#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);">
<endfold id='3'>]</endfold id='3'><endfold id='2'>></endfold id='2'>

<beginfold id='4'><!--</beginfold id='4'> we need this tags or this is no valid file <endfold id='4'>--></endfold id='4'>

<beginfold id='5'><</beginfold id='5'>element attr1="a1" attr2="2.03" attr3="&entity;">
    <beginfold id='5'><</beginfold id='5'>sub-element<endfold id='5'>/></endfold id='5'>
</element<endfold id='5'>></endfold id='5'>

This is a pseudo XML file to test Kate's XML syntax highlighting.

Doctype:
	<beginfold id='2'><!</beginfold id='2'>DOCTYPE HTML PUBLIC "-//SOME_DOCTYPE 0.01//EN" SYSTEM "foobar.dtd"<endfold id='2'>></endfold id='2'>
	<beginfold id='2'><!</beginfold id='2'>DOCTYPE
        HTML PUBLIC "-//SOME_DOCTYPE 0.01//EN" SYSTEM "foobar.dtd"<endfold id='2'>></endfold id='2'>

Processing instruction:
	<beginfold id='1'><?</beginfold id='1'>php processing instruction <endfold id='1'>?></endfold id='1'>

Comments:
	<beginfold id='4'><!--</beginfold id='4'> a comment <endfold id='4'>--></endfold id='4'>
	<beginfold id='4'><!--</beginfold id='4'> another comment,
	using more than one line <endfold id='4'>--></endfold id='4'>

Comment inside element:
	<beginfold id='5'><</beginfold id='5'>element attr="foobar">content<beginfold id='4'><!--</beginfold id='4'> comment <endfold id='4'>--></endfold id='4'></element<endfold id='5'>></endfold id='5'>

Markup inside comment:
	<beginfold id='4'><!--</beginfold id='4'>
	This is a comment!
	<element inside_comment />
	<endfold id='4'>--></endfold id='4'>

Empty element:
	<beginfold id='5'><</beginfold id='5'>empty<endfold id='5'>/></endfold id='5'>
	<beginfold id='5'><</beginfold id='5'>empty  <endfold id='5'>/></endfold id='5'>

Simple element plus content:
	<beginfold id='5'><</beginfold id='5'>element>some content</element<endfold id='5'>></endfold id='5'>
	<beginfold id='5'><</beginfold id='5'>element attr="foobar">some
		content</element<endfold id='5'>></endfold id='5'>

Namespace for elements and attributes:
	<beginfold id='5'><</beginfold id='5'>ns:element>content</ns:element<endfold id='5'>></endfold id='5'>
	<beginfold id='5'><</beginfold id='5'>element ns:attr="content content">content</element<endfold id='5'>></endfold id='5'>

Elements containing allowed characters:
	<beginfold id='5'><</beginfold id='5'>element-dash foo="test"<endfold id='5'>/></endfold id='5'>
	<beginfold id='5'><</beginfold id='5'>element.dot foo="test"<endfold id='5'>/></endfold id='5'>

Elements containing allowed start characters:
	<beginfold id='5'><</beginfold id='5'>:element foo="test"<endfold id='5'>/></endfold id='5'>
	<beginfold id='5'><</beginfold id='5'>_element foo="test"<endfold id='5'>/></endfold id='5'>

Single quotes (the same as double quotes):
	<beginfold id='5'><</beginfold id='5'>element attr='content &nbsp; content'>content</element<endfold id='5'>></endfold id='5'>

Allowed Whitespace:
	<beginfold id='5'><</beginfold id='5'>element     attr   =   "test"  >
		content</element<endfold id='5'>></endfold id='5'>

Entities:
	&nbsp;
	&#229;
	&#xE5;
	&#Xe5;
	&#1048;
	&#x6C34;
	<beginfold id='5'><</beginfold id='5'>element attr="foo &nbsp; &#229; &amp; bar"<endfold id='5'>/></endfold id='5'>

Illegal XML, should not be highlighted:
	<0foobar> -- no digit as first character
	<-foo> -- no dash as first character

<beginfold id='5'><</beginfold id='5'>wrong<very wrong>>
