Beispiel #1
0
        public static Element ReadFeature(XmlReader reader)
        {
            if (!reader.MoveToAttribute("name"))
            {
                throw new ReadPrintSchemaDocumentException("Feature element must contains name attribute");
            }

            var name    = reader.ValueAsXName();
            var element = new PrintSchemaFeature(new FeatureName(name));

            foreach (var child in ReadChildren(reader))
            {
                element.Add(child);
            }

            return(element.GetResult());
        }
Beispiel #2
0
        public static Element ReadFeature(XmlReader reader)
        {
            if (!reader.MoveToAttribute("name"))
                throw new ReadPrintSchemaDocumentException("Feature element must contains name attribute");

            var name = reader.ValueAsXName();
            var element = new PrintSchemaFeature(new FeatureName(name));

            foreach (var child in ReadChildren(reader))
            {
                element.Add(child);
            }

            return element.GetResult();
        }