Updated XML reader example