If the doc xml file generated from the compiler includes the entity & then ndoc3 throws an exception:
C:\openpetra\bzr\trunk\delivery\bin>c:\Programme\NDoc3\bin\NDoc3Console.exe Ict.Petra.Shared.lib.data.dll
NDoc3Console 0.0 (Build 0.0.0.0; ; 01.01.2000)
Initializing...
Last step took 0,0 s
Merging XML documentation...
Error: NDoc3.Core.DocumenterException
Beim Analysieren von 'EntityName' ist ein Fehler aufgetreten. Zeile 1, Position 72.
Error: System.Xml.XmlException
Beim Analysieren von 'EntityName' ist ein Fehler aufgetreten. Zeile 1, Position 72.
NDoc3.Core.DocumenterException: Beim Analysieren von 'EntityName' ist ein Fehler aufgetreten. Zeile 1, Position 72. --->
System.Xml.XmlException: Beim Analysieren von 'EntityName' ist ein Fehler aufgetreten. Zeile 1, Position 72.
bei System.Xml.XmlTextReaderImpl.Throw(Exception e)
bei System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
bei System.Xml.XmlTextReaderImpl.Throw(String res)
bei System.Xml.XmlTextReaderImpl.ParseEntityName()
bei System.Xml.XmlTextReaderImpl.ParseEntityReference()
bei System.Xml.XmlTextReaderImpl.Read()
bei System.Xml.XmlTextReader.Read()
bei NDoc3.Core.Reflection.NDocXmlGenerator.CheckForInheritDoc(AssemblyName assemblyName, String memberName)
bei NDoc3.Core.Reflection.NDocXmlGenerator.WriteField(XmlWriter writer, FieldInfo field, Type type, Boolean hiding)
bei NDoc3.Core.Reflection.NDocXmlGenerator.WriteFields(XmlWriter writer, Type type)
bei NDoc3.Core.Reflection.NDocXmlGenerator.WriteClass(XmlWriter writer, Type type, Boolean hiding)
bei NDoc3.Core.Reflection.NDocXmlGenerator.WriteClasses(XmlWriter writer, Type[] types, String namespaceName)
bei NDoc3.Core.Reflection.NDocXmlGenerator.WriteNamespaces(XmlWriter writer, IModuleInfo module)
bei NDoc3.Core.Reflection.NDocXmlGenerator.WriteModule(XmlWriter writer, IModuleInfo module)
bei NDoc3.Core.Reflection.NDocXmlGenerator.WriteAssembly(XmlWriter writer, IAssemblyInfo assembly)
bei NDoc3.Core.Reflection.NDocXmlGenerator.BuildXml(XmlWriter writer)
bei NDoc3.Core.Reflection.NDocXmlGenerator.MakeXmlFile(FileInfo xmlFile, Formatting formatting, Int32 indentation, Ch
ar indentChar)
bei NDoc3.Core.Reflection.NDocXmlGenerator.MakeXmlFile(FileInfo xmlFile)
bei NDoc3.Core.Reflection.ReflectionEngine.MakeXmlFile(NDocXmlGeneratorParameters args, FileInfo xmlFile)
bei NDoc3.Core.Reflection.BaseReflectionDocumenter.MakeXmlFile(Project project, FileInfo outputFile)
bei NDoc3.Documenter.Msdn.MsdnDocumenter.CreateNDocXml(Project project)
bei NDoc3.Documenter.Msdn.MsdnDocumenter.Build(Project project)
--- Ende der internen Ausnahmestapelüberwachung ---
bei NDoc3.Documenter.Msdn.MsdnDocumenter.Build(Project project)
bei NDoc3.ConsoleApplication.EntryPoint.Main(String[] args)
C:\openpetra\bzr\trunk\delivery\bin>
Sorry: I'm not able to add the assembly and the doc xml file, because there are to many dependent assemblies. If you want to, you could checkout OpenPetra http://www.openpetra.org/ and compile the code.
I solved the problem by caching the innerXml instead of the innerText. Then the XML parser is happy later on. See attached patch
Patch