use singleton class to integrate curl, libxml2 and lexstat invokes