private string GetStringValue(XAttribute src) { if (src==null) throw new ParseErrorException(); return src.Value; }