[xml-bindings]How to use xmlDumpNotationTable?



Hello,

I am am trying to get the list of notations from a dtd.

My code:

function getNotations(dtd: xmlDtdPtr): string;
var
  notations: xmlNotationTablePtr;
  buf: xmlBufferPtr;
  temp:string;
begin
  if assigned(fXmlInternalDtd) then begin
    notations:=fXmlInternalDtd.notations;
    if assigned(notations) then begin
       buf:=xmlBufferCreate;
       xmlDumpNotationTable(buf,notations);  // this call crashes
       temp:=xmlBufferContent(buf);
       xmlBufferFree(buf);
     end;
    end;
  end;
  result:=temp;
end;

I do pass a valid internal dtd, it's length is ok.

But xmlDumpNotationTable crashes.

Any idea?

Regards:

Uwe Fechner




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]