Beispiel #1
0
        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 PassElementStartNodeToSubImporter(string name)
 {
     if (HasSubImporter())
     {
         subImporter.ProcessElementStartNode(name);
         return(true);
     }
     return(false);
 }