Code example for libxml2