Fix most XML read/write routines.  Work on web interface.