Exemple #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());
        }
        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();
        }