xml version="1.0" encoding="UTF-8"?>
DOCTYPE language SYSTEM "language.dtd"
[

ENTITY name "(?![0-9])[\w_:][\w.:_-]*">
ENTITY entref "&(#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);">
ENTITY % parameterEntity "blabla%parament;blabla" >
]>



<element attr1="a1" attr2="2.03" attr3="&entity;">
<sub-element/>
element>

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

Doctype:
DOCTYPE HTML PUBLIC "-//SOME_DOCTYPE 0.01//EN" SYSTEM "foobar.dtd">
DOCTYPE
HTML PUBLIC "-//SOME_DOCTYPE 0.01//EN" SYSTEM "foobar.dtd">

Processing instruction:
php processing instruction ?>

Comments:



Comment inside element:
<element attr="foobar">contentelement>

Markup inside comment:


Empty element:
<empty/>
<empty />

Simple element plus content:
<element>some contentelement>
<element attr="foobar">some
contentelement>

Namespace for elements and attributes:
<ns:element>contentns:element>
<element ns:attr="content content">contentelement>

Elements containing allowed characters:
<element-dash foo="test"/>
<element.dot foo="test"/>

Elements containing allowed start characters:
<:element foo="test"/>
<_element foo="test"/>

Single quotes (the same as double quotes):
<element attr='content   content'>contentelement>

Allowed Whitespace:
<element attr = "test" >
contentelement>

Entities:
 
å
å
å
И

<element attr="foo   å & bar"/>

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

<wrong wrong>>