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