- function mw_xml($host, $base, $user, $password){
- $this->init_xml_env($host, $base, $user, $password);
+ function mw_xml($params = array()){
+ $this->init_xml_env(
+ isset($params["host"]) ? $params["host"] : "content/data/xml",
+ isset($params["base"]) ? $params["base"] : "mw",
+ isset($params["user"]) ? $params["user"] : "",
+ isset($params["password"]) ? $params["password"] : ""
+ );