I m having following type of content in a string variable
<root>
<head>
</head>
<body>
<head>
</head>
<params>
</params>
</body>
</root>
so either using LINQ or anything else I wish to remove this second head element that is inside body tag. so that resultant string becomes like this .
<root>
<head>
</head>
<body>
<params>
</params>
</body>
</root>
how to do this , is thr any simpler approach rather then string matching or pattern matching approaches.
Thanks in adv guys
Here is a way on how you can implement what you want.