adding requireResult and getResult to allow for missing xml fields

#9