WIP: xml validation