rough working draft of XML interpreter