private string GetAttributeString(XmlNode nd, string name) { XmlAttribute att = null; att = nd.Attributes[name]; return (att != null) ? att.Value : string.Empty; }