check functions for xmlNodePtr