It turned out that the XML document had some tags that SAS did not process well. We have multiple centers entering data, and the XML tags for centers were causing the problem. One way to fix the problem was to delete those tags in the XML document. Another is to use XML extract from single centers.
Hope this update helps someone somewhere, even though it took 3 years to reply.