Beginning work on XML writing