Hi,

When compiling from CVS there were errors in genr_funcs.xml (and Italian). I am also "slowly" preparing genr_funcs_pt.xml. The validate program is only prepared for the gretl_commands.xml file type, from the time the functions were included.
If you have the time, can you please adapt the validate.c to be used with the functions files?

This is the outputs:
[helio@centos64 commands]$ ./validate genr_funcs.xml
genr_funcs.xml:4485: parser error : Opening and ending tag mismatch: para line 4473 and description
      </description>
                    ^
genr_funcs.xml:4486: parser error : Opening and ending tag mismatch: description line 4472 and function
    </function>
               ^
genr_funcs.xml:7413: parser error : Opening and ending tag mismatch: function line 4467 and funclist
  </funclist>
             ^
genr_funcs.xml:7414: parser error : Opening and ending tag mismatch: funclist line 919 and funcref
</funcref>
          ^
genr_funcs.xml:7415: parser error : Premature end of data in tag funcref line 4

^
Error parsing genr_funcs.xml
[helio@centos64 commands]$ ./validate genr_funcs_pt.xml
File of the wrong type, root node not commandref
Error parsing genr_funcs_pt.xml

----

Attached are small scripts to help the verification of the update of commands and functions, prepared for Portuguese (feel free to adapt). Included are also the two result files.
Example run:
cd gretl/doc/commands
./d.sh
(outputs d_ep.txt, a side by side diff of validate)