System.Xml.Tests.XsltApiTestCaseBase.GetDocType C# (CSharp) Method

GetDocType() public method

public GetDocType ( String s ) : DocType
s String
return DocType
        public DocType GetDocType(String s)
        {
            switch (s.ToUpper())
            {
                case "XPATHDOCUMENT":
                    return DocType.XPathDocument;

                case "XMLDOCUMENT":
                    return DocType.XmlDocument;

                default: // DocType Type not important, using default
                    return DocType.XPathDocument;
            }
        }