let's add a constructor
fix m_node reference in domdocument