I want all the blank lines to be removed in the XML below before writing it to document. It may help to know that I used the .DeleteSelf() method of the XPathNavigator class to get rid of the unwanted nodes before (and that only leaves empty lines).
<Person xmlns="http://someURI.com/something">
<FirstName>Name1</FirstName>
<MiddleName>Name2</MiddleName>
<LastName>Name3</LastName>
</Person>