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

            var name    = reader.ValueAsXName();
            var element = new PrintSchemaScoredProperty(new ScoredPropertyName(name));

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

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

            var name = reader.ValueAsXName();
            var element = new PrintSchemaScoredProperty(new ScoredPropertyName(name));

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

            return element.GetResult();
        }