Added factory apply methods for DomNode/ScalaXmlNode creation