Warning, /frameworks/syntax-highlighting/autotests/input/highlight.xml is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0" encoding="UTF-8"?>
0002 <!DOCTYPE language SYSTEM "language.dtd"
0003 [
0004     <!-- comment line 1
0005          comment line 2 -->
0006     <!ENTITY name    "(?![0-9])[\w_:][\w.:_-]*">
0007     <!ENTITY entref  "&amp;(#[0-9]+|#[xX][0-9A-Fa-f]+|&name;);">
0008 ]>
0009 
0010 <!-- we need this tags or this is no valid file -->
0011 
0012 <element attr1="a1" attr2="2.03" attr3="&entity;">
0013     <sub-element/>
0014 </element>
0015 
0016 This is a pseudo XML file to test Kate's XML syntax highlighting.
0017 
0018 Doctype:
0019         <!DOCTYPE HTML PUBLIC "-//SOME_DOCTYPE 0.01//EN" SYSTEM "foobar.dtd">
0020         <!DOCTYPE
0021         HTML PUBLIC "-//SOME_DOCTYPE 0.01//EN" SYSTEM "foobar.dtd">
0022 
0023 Processing instruction:
0024         <?php processing instruction ?>
0025 
0026 Comments:
0027         <!-- a comment -->
0028         <!-- another comment,
0029         using more than one line -->
0030 
0031 Comment inside element:
0032         <element attr="foobar">content<!-- comment --></element>
0033 
0034 Markup inside comment:
0035         <!--
0036         This is a comment!
0037         <element inside_comment />
0038         -->
0039 
0040 Empty element:
0041         <empty/>
0042         <empty  />
0043 
0044 Simple element plus content:
0045         <element>some content</element>
0046         <element attr="foobar">some
0047                 content</element>
0048 
0049 Namespace for elements and attributes:
0050         <ns:element>content</ns:element>
0051         <element ns:attr="content content">content</element>
0052 
0053 Elements containing allowed characters:
0054         <element-dash foo="test"/>
0055         <element.dot foo="test"/>
0056 
0057 Elements containing allowed start characters:
0058         <:element foo="test"/>
0059         <_element foo="test"/>
0060 
0061 Single quotes (the same as double quotes):
0062         <element attr='content &nbsp; content'>content</element>
0063 
0064 Allowed Whitespace:
0065         <element     attr   =   "test"  >
0066                 content</element>
0067 
0068 Entities:
0069         &nbsp;
0070         &#229;
0071         &#xE5;
0072         &#Xe5;
0073         &#1048;
0074         &#x6C34;
0075         <element attr="foo &nbsp; &#229; &amp; bar"/>
0076 
0077 Illegal XML, should not be highlighted:
0078         <0foobar> -- no digit as first character
0079         <-foo> -- no dash as first character
0080 
0081 <wrong<very wrong>>