Esempio n. 1
0
        public static Element ReadParameterRef(XmlReader reader)
        {
            if (!reader.MoveToAttribute("name"))
            {
                throw new ReadPrintSchemaDocumentException("ParameterRef element must contains name attribute");
            }

            var name    = reader.ValueAsXName();
            var element = new PrintSchemaParameterRef(new ParameterName(name));

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

            return(element.GetResult());
        }
Esempio n. 2
0
        public static Element ReadParameterRef(XmlReader reader)
        {
            if (!reader.MoveToAttribute("name"))
                throw new ReadPrintSchemaDocumentException("ParameterRef element must contains name attribute");

            var name = reader.ValueAsXName();
            var element = new PrintSchemaParameterRef(new ParameterName(name));

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

            return element.GetResult();
        }