<!DOCTYPE Highlight>
<Highlight wildcards="*.xml; *.xls; *.ui; *.rc" name="XML">

 <Items>
  <Text         style="" color="#000000" />
  <Char         style="" color="#008000" />
  <Memo         style="" color="#808080" />
  <Attribute    style="" color="#000080" />
  <Tag          style="" color="#800080" />
  <Value        style="" color="#008080" />
  <EndTag       style="" color="#000000" />
  <Brace        style="" color="#000000" />
  <XlsTag       style="" color="#F00000" />
  <XmlDef       style="" color="#646464" />
  <CDATA        style="" color="#808080" />
 </Items>

 <Break>
  <normal>
   <citem item="" regexp="&lt;\!\[CDATA\["    mode="until, include" lineEndContent="cdata" />
   <citem item="" regexp="&lt;!--"            mode="until, include" lineEndContent="comment1" />
   <citem item="" regexp="&lt;COMMENT\s*>" mode="until, include, noCaseSensitive" lineEndContent="comment2" />
   <citem item="" regexp="&lt;\?"        mode="until, include" lineEndContent="xmldef" />
   <citem item="" regexp="&lt;"           mode="until, include" lineEndContent="tag" />
   <citem item="" regexp="$"               mode="until" />
  </normal>

  <comment1>
   <citem item="" regexp="-->" mode="until, exclude, allowfull"/>
   <citem item="" regexp="-->" lineEndContent="normal" />
  </comment1>

  <cdata>
   <citem item="" regexp="\]\]>" mode="until, exclude, allowfull"/>
   <citem item="" regexp="\]\]>" lineEndContent="normal" />
  </cdata>

  <xmldef>
   <citem item="" regexp="\?>" mode="until, exclude, allowfull"/>
   <citem item="" regexp="\?>" lineEndContent="normal" />
  </xmldef>


  <comment2>
   <citem item="" regexp="/COMMENT>" mode="until, exclude, allowfull, noCaseSensitive"/>
   <citem item="" regexp="/COMMENT>" mode="noCaseSensitive" lineEndContent="normal" />
  </comment2>

  <tag>
   <citem item="" regexp=">" mode="until, exclude, allowfull"/>
   <citem item="" regexp=">" lineEndContent="normal" />
  </tag>

 </Break>

 <Contents>

  <normal>
   <citem item="Text" regexp="\s+" />
   <citem item="Char" regexp="&amp;[^;]+;" lineEndContent="normal" />
   <citem item="CDATA" regexp="&lt;!\[CDATA\[" lineEndContent="cdata" />
   <citem item="Memo"  regexp="&lt;!--" lineEndContent="comment1" />
   <citem item="Memo"  regexp="&lt;COMMENT\s*>" mode="noCaseSensitive" lineEndContent="comment2" />
   <citem item="XmlDef"  regexp="&lt;\?" lineEndContent="xmldef" />
   <citem item="Brace" regexp="&lt;" lineEndContent="tag" />
   <citem item="Text" regexp="[^&amp;&lt;]+" lineEndContent="normal" />
  </normal>

  <cdata>
   <citem item="Text" regexp="\]\]>" mode="until, exclude, allowfull"/>
   <citem item="CDATA" regexp="\]\]>" lineEndContent="normal" />
  </cdata>

  <comment1>
   <citem item="Memo" regexp="-->" mode="until, exclude, allowfull"/>
   <citem item="Memo" regexp="-->" lineEndContent="normal" />
  </comment1>

  <comment2>
   <citem item="Memo" regexp="/COMMENT>" mode="until, exclude, allowfull, noCaseSensitive"/>
   <citem item="Memo" regexp="/COMMENT>" mode="noCaseSensitive" lineEndContent="normal" />
  </comment2>

  <xmldef>
   <citem item="XmlDef" regexp="\?>" mode="until, exclude, allowfull"/>
   <citem item="XmlDef" regexp="\?>" lineEndContent="normal" />
  </xmldef>


  <tag>
   <citem item="Text"       regexp="!" />
   <citem item="Text"       regexp="\s+" />
   <citem item="EndTag"     regexp="/" />
   <citem item="Text"       regexp="\s+" />
   <citem item="Brace"      regexp=">" lineEndContent="normal" />
   <citem item="Attribute"  regexp="[\w:_\-]+\s*(?==)" emptyContent="tag2"/>
   <citem item="Text"       regexp="=" />
   <citem item="Text"       regexp="\s+" />
   <citem item="Value"      regexp="&quot;" lineEndContent="tagstring1" />
   <citem item="Value"      regexp="'" lineEndContent="tagstring2" />
   <citem item="Value"      regexp="[\w/#%_\-]+" emptyContent="normal"/>
  </tag>

  <tag2>
   <citem item="Value"  regexp="&quot;" lineEndContent="tagstring1" />
   <citem item="Value"  regexp="'" lineEndContent="tagstring2" />
   <citem item="XlsTag" regexp="xls:[\w_\-]+" lineEndContent="tag" />
   <citem item="Tag"    regexp="[\w:_\-]+" lineEndContent="tag" />
  </tag2>

  <tagstring1>
   <citem item="Value" regexp="&quot;" mode="until, exclude, allowfull"/>
   <citem item="Value" regexp="&quot;" lineEndContent="tag" />
  </tagstring1>

  <tagstring2>
   <citem item="Value" regexp="'" mode="until, exclude, allowfull"/>
   <citem item="Value" regexp="'" lineEndContent="tag" />
  </tagstring2>

 </Contents>

</Highlight>