<beginfold id='1'><?xml</beginfold id='1'> version="1.0" encoding="UTF-8"<endfold id='1'>?></endfold id='1'>
<beginfold id='2'><!DOCTYPE </beginfold id='2'>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'><element</beginfold id='5'> attr1="a1" attr2="2.03" attr3="&entity;">
    <beginfold id='5'><sub-element</beginfold id='5'><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'><!DOCTYPE </beginfold id='2'>HTML PUBLIC "-//SOME_DOCTYPE 0.01//EN" SYSTEM "foobar.dtd"<endfold id='2'>></endfold id='2'>

Processing instruction:
	<beginfold id='1'><?php</beginfold id='1'> 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'><element</beginfold id='5'> 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'><empty</beginfold id='5'><endfold id='5'>/></endfold id='5'>
	<beginfold id='5'><empty</beginfold id='5'>  <endfold id='5'>/></endfold id='5'>

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

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

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

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

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

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

Entities:
	&nbsp;
	&#229;
	&#xE5;
	&#Xe5;
	&#1048;
	&#x6C34;
	<beginfold id='5'><element</beginfold id='5'> 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'><wrong</beginfold id='5'><very wrong>>
