public XMLTagReader(XmlTextReader reader, string tag, IgnoredTags ignoredTags, MashupParseContext context) { this.context = context; this.ignoredTags = ignoredTags; if (reader.NodeType != XmlNodeType.Element || reader.Name != tag) { throw new Exception(string.Format("You found a bug. Reader for {0} called improperly at start of {1} block.", tag, reader.Name)); } this.reader = reader; this.tag = tag; if (reader.IsEmptyElement) { this.empty = true; } }
public bool IsTagIgnored(string tag) { return(IgnoredTags.Contains(tag)); }