Example library porting: libxml