First shot at debugging from my side.

Because the error says:
Exception at 00000000004BDB6C: EDOMError:
EDOMError in DOMDocument.CreateElement.

I searched for "DOMDocument.CreateElement". Low and behold, I find
something interesting in fpcsrc/packages/fcl-xml/src/dom.pp:

function TDOMDocument.CreateElement(const tagName: DOMString): TDOMElement;
begin
  if not IsXmlName(tagName) then
    raise EDOMError.Create(INVALID_CHARACTER_ERR,
'DOMDocument.CreateElement');
  TDOMNode(Result) := Alloc(TDOMElement);

Result.Create(Self);http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=2042
  Result.FNSI.QName := FNames.FindOrAdd(DOMPChar(tagName), Length(tagName));
  Result.AttachDefaultAttrs;
end;

First idea that pops into my mind is: it looks like the source of
lazarus has characters that fp-docs can't convert. Apparently an error
is raised, but converted by fp-docs into exit code 0.

Interesting to note, is the delta between 2.4.6 and 3.0.0:
-  if not IsXmlName(tagName, FXMLVersion = xmlVersion11) then
+  if not IsXmlName(tagName) then
which was done in this commit:
http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=20422

Sending now as I am about to stop for today, but summary as I currently
suspect the situation is:
1) fp-doc fails to create error exit code during error
2) lazarus may have xml files that need updating.

Probably the next time I spend time on this will be to bisect the
documentation creation to see which file(s) need fixing -> to
potentially solve issue 2 if that is indeed the issue.

Paul


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to