added two new methods when working with repeated nodes in and XML and changed the input reading routines to use these