import from http://ocsigen.org/darcs/tyxml/