fixing problem with load method of DomDocument