1. A method for fabricating a resistive switching memory element, comprising: forming a metal-containing layer; and forming an oxide layer adjacent to the metal-containing layer; and heating the metal-containing layer and the oxide layer to oxidize metal from the metal-containing layer with oxygen from the oxide layer and thereby form a resistive switching metal oxide layer for the resistive switching memory element.