public IEnumerable<ProtoXamlNode> Parse(Stream stream)
        {
            reader = new XmlCompatibilityReader(stream);
            reader.Read();

            return ParseElement();
        }
        public IEnumerable <ProtoXamlInstruction> Parse(IXmlReader stream)
        {
            this.reader     = stream;
            attributeParser = new AttributeParser(reader);
            reader.Read();

            return(ParseElement());
        }
        public IEnumerable<ProtoXamlInstruction> Parse(Stream stream)
        {
            reader = new XmlCompatibilityReader(stream);
            attributeParser = new AttributeParser(reader);
            reader.Read();

            return ParseElement();
        }
        public IEnumerable<ProtoXamlInstruction> Parse(IXmlReader stream)
        {
            this.reader = stream;
            attributeParser = new AttributeParser(reader);
            reader.Read();

            return ParseElement();
        }
Beispiel #5
0
        public IList <ApplicationDataModel.ADM.ApplicationDataModel> Import(string dataPath, Properties properties = null)
        {
            var taskDataFiles = GetListOfTaskDataFiles(dataPath);

            if (!taskDataFiles.Any())
            {
                return(null);
            }

            var adms = new List <ApplicationDataModel.ADM.ApplicationDataModel>();

            foreach (var taskDataFile in taskDataFiles)
            {
                var dataModel = new ApplicationDataModel.ADM.ApplicationDataModel();

                var taskDataDocument = ConvertTaskDataFileToModel(taskDataFile, dataModel);

                var iso11783TaskData = _xmlReader.Read(taskDataFile);
                _importer.Import(iso11783TaskData, dataPath, dataModel, taskDataDocument.LinkedIds);
                adms.Add(dataModel);
            }

            return(adms);
        }