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; } } } }
private void ProcessAttributes(XmlReader xmlReader, IReqIfParserCallbackReceiver callbackReceiver) { while (xmlReader.MoveToNextAttribute()) { callbackReceiver.ProcessAttribute(xmlReader.Name, xmlReader.Value); } xmlReader.MoveToElement(); }
private void ProcessAttributes(XmlReader xmlReader, IReqIfParserCallbackReceiver callbackReceiver) { while (xmlReader.MoveToNextAttribute()) { callbackReceiver.ProcessAttribute(xmlReader.Name, xmlReader.Value); } xmlReader.MoveToElement(); }
protected BasicReqIfFileImporter() { subImporter = null; }
protected BasicReqIfFileImporter() { subImporter = null; }