public void Parse(IReqIfParserCallbackReceiver callbackReceiver) { if (xmlReader != null) { while (xmlReader.Read()) { switch (xmlReader.NodeType) { case XmlNodeType.Element: callbackReceiver.ProcessElementStartNode(xmlReader.Name); if (xmlReader.HasAttributes) { ProcessAttributes(xmlReader, callbackReceiver); } break; case XmlNodeType.Text: callbackReceiver.ProcessTextNode(xmlReader.Value); break; case XmlNodeType.EndElement: callbackReceiver.ProcessElementEndNode(xmlReader.Name); break; } } } }
public void Parse(IReqIfParserCallbackReceiver callbackReceiver) { if (xmlReader != null) { while (xmlReader.Read()) { switch (xmlReader.NodeType) { case XmlNodeType.Element: callbackReceiver.ProcessElementStartNode(xmlReader.Name); if (xmlReader.HasAttributes) ProcessAttributes(xmlReader, callbackReceiver); break; case XmlNodeType.Text: callbackReceiver.ProcessTextNode(xmlReader.Value); break; case XmlNodeType.EndElement: callbackReceiver.ProcessElementEndNode(xmlReader.Name); break; } } } }
protected bool PassElementEndNodeToSubImporter(string name) { if (HasSubImporter()) { subImporter.ProcessElementEndNode(name); return(true); } return(false); }