src/transformer.js
function _parseXml( xmlStr ) {
    let doc;

    return new Promise( ( resolve, reject ) => {
        try {
            doc = libxmljs.parseXml( xmlStr );
            resolve( doc );
        } catch ( e ) {
            reject( e );
        }
    } );
}
function _parseXml( xmlStr ) {
    let doc;

    return new Promise( ( resolve, reject ) => {
        try {
            doc = libxmljs.parseXml( xmlStr );
            resolve( doc );
        } catch ( e ) {
            reject( e );
        }
    } );
}
function _parseXml ( xmlStr ) { let doc ; return new Promise ( ( resolve , reject ) => { try { doc = libxmljs . parseXml ( xmlStr ) ; resolve ( doc ) ; } catch ( e ) { reject ( e ) ; } } ) ; }
Parses and XML string into a libxmljs object

@param  {string} xmlStr XML string
@return {Promise}       libxmljs result document object
Parses and XML string into a libxmljs object