Azavea.Open.Common.Config.GetConfigXml C# (CSharp) Method

GetConfigXml() public method

Gets you the XML section for the component, allowing you to do any special parsing that may be necessary. This includes the "component" tag, and any text included in that tag.
public GetConfigXml ( string component ) : string
component string The component or section of the config file, used to /// locate the parameter.
return string
        public virtual string GetConfigXml(string component)
        {
            if (component == null)
            {
                throw new ArgumentNullException("component", "Component cannot be null.");
            }
            try
            {
                return _outerXmlByComponent[component];
            }
            catch(Exception ex)
            {
                ReThrowException("Error while getting config XML for component.",
                    new object[] { ConfigFile, component }, ex);
                // that throws, but the compiler wants a return statement.
                return null;
            }
        }