I was attempting to build documentation from the
Microsoft.EnterpriseLibrary assemblies to put on our
server. NDoc 1.3.1 for .NET Framework consistently
throws this exception during the documentation build
stage.
Steps to reproduce the issue:
Open EnterpriseLibrary.sln in Visual Studio 2003,
change the projects to generate XML documentation
using the same name as the project, and rebuild
solution. Open NDoc 1.3, select New From Visual
Studio Solution, and point to EnterpriseLibrary.sln.
An error occured while trying to build the
documentation.
Exception: NDoc.Core.DocumenterException
This document already has a DocumentElement node.
Exception: System.InvalidOperationException
This document already has a DocumentElement node.
Exception: NDoc.Core.DocumenterException
at NDoc.Documenter.Msdn.MsdnDocumenter.Build
(Project project)
at NDoc.Gui.BuildWorker.ThreadProc()
Exception: System.InvalidOperationException
at System.Xml.XmlDocument.IsValidChildType
(XmlNodeType type)
at System.Xml.XmlDocument.AppendChildForLoad
(XmlNode newChild, XmlDocument doc)
at System.Xml.XmlLoader.LoadDocSequence
(XmlDocument parentDoc)
at System.Xml.XmlLoader.Load(XmlDocument doc,
XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at NDoc.Documenter.Msdn.MsdnDocumenter.Build
(Project project)