SharpMap.Web.Wms.Client.ParseCapability C# (CSharp) Method

ParseCapability() private method

Parses capability node
private ParseCapability ( XmlNode xnCapability ) : void
xnCapability System.Xml.XmlNode
return void
        private void ParseCapability(XmlNode xnCapability)
        {
            XmlNode xnRequest = xnCapability.SelectSingleNode("sm:Request", nsmgr);
            if (xnRequest == null)
                throw (new System.Exception("Request parameter not specified in Service Description"));
            ParseRequest(xnRequest);
            XmlNode xnLayer = xnCapability.SelectSingleNode("sm:Layer", nsmgr);
            if (xnLayer == null)
                throw (new System.Exception("No layer tag found in Service Description"));
            _Layer = ParseLayer(xnLayer);

            XmlNode xnException = xnCapability.SelectSingleNode("sm:Exception", nsmgr);
            if (xnException != null)
                ParseExceptions(xnException);
        }