src/Xmla.js
function _parseSoapFaultDetail(detailNode){
        var errors = [];
        var i, childNodes = detailNode.childNodes, n = childNodes.length, childNode;
        for (i = 0; i < n; i++) {
          childNode = childNodes[i];
          if (childNode.nodeType !== 1) {
            continue;
          }
          switch (childNode.nodeName){
            case "Error":
              errors.push({
                ErrorCode: _getAttribute(childNode, "ErrorCode"),
                Description: _getAttribute(childNode, "Description"),
                Source: _getAttribute(childNode, "Source"),
                HelpFile: _getAttribute(childNode, "HelpFile")
              });
              break;
            default:
          }
        }
        return errors;
      }
function _parseSoapFaultDetail(detailNode){
        var errors = [];
        var i, childNodes = detailNode.childNodes, n = childNodes.length, childNode;
        for (i = 0; i < n; i++) {
          childNode = childNodes[i];
          if (childNode.nodeType !== 1) {
            continue;
          }
          switch (childNode.nodeName){
            case "Error":
              errors.push({
                ErrorCode: _getAttribute(childNode, "ErrorCode"),
                Description: _getAttribute(childNode, "Description"),
                Source: _getAttribute(childNode, "Source"),
                HelpFile: _getAttribute(childNode, "HelpFile")
              });
              break;
            default:
          }
        }
        return errors;
      }
function _parseSoapFaultDetail ( detailNode ) { var errors = [ ] ; var i , childNodes = detailNode . childNodes , n = childNodes . length , childNode ; for ( i = 0 ; i < n ; i ++ ) { childNode = childNodes [ i ] ; if ( childNode . nodeType !== 1 ) { continue ; } switch ( childNode . nodeName ) { case "Error" : errors . push ( { ErrorCode : _getAttribute ( childNode , "ErrorCode" ) , Description : _getAttribute ( childNode , "Description" ) , Source : _getAttribute ( childNode , "Source" ) , HelpFile : _getAttribute ( childNode , "HelpFile" ) } ) ; break ; default : } } return errors ; }
Get faultactor, faultstring, faultcode and detail elements
Get faultactor faultstring faultcode and detail elements