added a simple xml parser