Background
----------

I have inherited a load of XML files that consistently contain a tag with two openings rather than an opening and a closure. I need to loop through all of these files and correct the malformed XML.

Here is a simplified example of the bad XML which is the exact same tag in every file:

```
<meals>
    <breakfast>
         Eggs and Toast
    </breakfast>
    <lunch>
         Salad and soup
    <lunch>
    <supper>
         Roast beef and potatoes
    </supper>
</meals>

```

Notice that the `<lunch>` tag has no closure. This is consistent in all of the files.

Question
--------

Would it be best to use `regex` for C# to fix this and, if so, how would I do that exactly?

I already know how to iterate the file system and read the docs into either an XML or string object so you don't need to answer that part.

Thanks!