string test = "<body><head>test header</head></body>"; XmlDocument xmltest = new XmlDocument(); xmltest.LoadXml(test); XmlNodeList elemlist = xmltest.GetElementsByTagName("head"); string result = elemlist[0].InnerXml; //result -> "test header"