applied patch to fix xmlListAppend() from Georges-André SILBER also fix

* list.c: applied patch to fix xmlListAppend() from 
  Georges-André SILBER
* valid.c: also fix the place wher it was called.
Daniel

svn path=/trunk/; revision=3614
3 files changed