handling of simple degenerate errors and reformatting
updates for xmlToS4()