private void AnalyzeSpaceLang() {
Debug.Assert(this.mainNode.NodeType == XmlNodeType.Element);
for (int attr = 0; attr < this.attributeCount; attr ++) {
Debug.Assert(this.attributeList[attr] is BuilderInfo);
BuilderInfo info = (BuilderInfo) this.attributeList[attr];
if (Keywords.Equals(info.Prefix, this.atoms.Xml)) {
OutputScope scope = this.scopeManager.CurrentElementScope;
if (Keywords.Equals(info.LocalName, this.atoms.Lang)) {
scope.Lang = info.Value;
}
else if (Keywords.Equals(info.LocalName, this.atoms.Space)) {
scope.Space = TranslateXmlSpace(info.Value);
}
}
}
}