Menu

#411 DocumenterException when documenting 2 assemblies

open
NDoc Core (101)
5
2005-07-13
2005-04-13
Bas Bossink
No

When executing the following commandline:

NDocConsole.exe
..\..\SasControl\Src\SasControlInterface\bin\Debug\Philips.CryptoWorks.Sas.ControlInterface.dll,..\..\SasControl\Src\SasControlInterface\doc\SasConfiguration.xml
..\..\SmsHandler\Src\SmsProcessor\bin\Debug\Philips.CryptoWorks.Sas.SmsProcessor.dll,..\..\SmsHandler\Src\SmsProcessor\doc\Documentation.xml
-documenter="VS.NET 2003"
-DocumentEmptyNamespaces=True
-GenerateCollectionFiles=True
-CleanIntermediateFiles=True -verbose -title=Build-Sas
-OutputDirectory=C:\CryptoWorks\Doc\Build-Sas
-HtmlHelpName=Build-Sas
===
the following output is produced:
====
NDoc 1.3.1 (Build 1.3.1851.0; net-1.1.win32; release;
25-01-2005)
http://ndoc.sourceforge.net

Initializing...
Last step took 0.2 s
Merging XML documentation...
Error: NDoc.Core.DocumenterException
An error occured while creating the documentation
Error: System.InvalidOperationException
This document already has a DocumentElement node.

at
NDoc.Documenter.NativeHtmlHelp2.NativeHtmlHelp2Documenter.Build(Project
project)
at NDoc.ConsoleApplication.EntryPoint.Main(String[]
args)
Error: NDoc.Core.DocumenterException
An error occured while creating the documentation
Error: System.InvalidOperationException
This document already has a DocumentElement node.

at
NDoc.Documenter.NativeHtmlHelp2.NativeHtmlHelp2Documenter.Build(Project
project)
at NDoc.ConsoleApplication.EntryPoint.Main(String[]
args)
===
Framework version: MS v1.1.4322
OS: WinXP prof.

The used assemblies and xml files can unfortunately not
be attached due to security restrictions.

Discussion

  • Kevin Downs

    Kevin Downs - 2005-07-10
    • labels: 544443 --> NDoc Core
    • assigned_to: nobody --> kdowns
    • status: open --> pending
     
  • Kevin Downs

    Kevin Downs - 2005-07-10

    Logged In: YES
    user_id=919791

    Are you using VBCommenter?
    Are the xml files well-formed?

     
  • Bas Bossink

    Bas Bossink - 2005-07-13

    Logged In: YES
    user_id=565443

    The used commenter is VS .Net 2003 as can be seen from the
    submitted command-line above. The used xml file is well-formed.

     
  • Bas Bossink

    Bas Bossink - 2005-07-13
    • status: pending --> open
     
  • Bas Bossink

    Bas Bossink - 2005-07-13

    Logged In: YES
    user_id=565443

    Replacing:
    FilteringXmlTextReader fxtr = new
    FilteringXmlTextReader(tempFile);
    with:
    XmlTextReader fxtr = new XmlTextReader(tempFile);
    in NDoc.Documenter.NativeHtmlHelp2.Engine.HtmlFactory
    resolves the issue. I can't put my finger on it exactly but
    it seems that the FilteringXmlTextReader causes XmlDocument
    to think it is parsing an Xml file with more than one root
    element.

     

Log in to post a comment.