private bool ProcessXmlDeclaration()
{
bool isProcessed = false;
string content = _innerContext.SourceCode;
int contentRemainderLength = _innerContext.RemainderLength;
var match = _xmlDeclarationRegex.Match(content, _innerContext.Position, contentRemainderLength);
if (match.Success)
{
string xmlDeclaration = match.Value;
if (_handlers.XmlDeclaration != null)
{
_handlers.XmlDeclaration(_context, xmlDeclaration);
}
_innerContext.IncreasePosition(xmlDeclaration.Length);
isProcessed = true;
}
return isProcessed;
}