When creating a doctype for an System.Xml.Linq.XDocument like this:

```
doc.AddFirst(new XDocumentType("html", null, null, null));

```

The resulting saved XML file starts with:

```
<!DOCTYPE html >

```

Notice the extra space before the closing angle bracket.
How can I prevent this space appearing?
I'd like a clean way if possible :)