Use the proper function (_getElementsByTagNameNS; not _getElementsByTagName as in the original source) to extract fault code and fault message string.