libdom is C version of DOM api to make dom based system