Пример #1
0
        public static Element ReadProperty(XmlReader reader)
        {
            if (!reader.MoveToAttribute("name"))
            {
                throw new ReadPrintSchemaDocumentException("Property element must contains name attribute");
            }

            var name    = reader.ValueAsXName();
            var element = new PrintSchemaProperty(new PropertyName(name));

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

            return(element.GetResult());
        }
Пример #2
0
        public static Element ReadProperty(XmlReader reader)
        {
            if (!reader.MoveToAttribute("name"))
                throw new ReadPrintSchemaDocumentException("Property element must contains name attribute");

            var name = reader.ValueAsXName();
            var element = new PrintSchemaProperty(new PropertyName(name));

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

            return element.GetResult();
        }