update malformed XML
use localStorage.getItem to display var