UNPKG

@pact-foundation/pact

Version:
19 lines 541 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.XmlBuilder = void 0; const xmlElement_1 = require("./xmlElement"); /** * XML Builder class for constructing XML documents with matchers */ class XmlBuilder { root; constructor(_version, _charset, rootElement) { this.root = new xmlElement_1.XmlElement(rootElement); } build(callback) { callback(this.root); return JSON.stringify(this); } } exports.XmlBuilder = XmlBuilder; //# sourceMappingURL=xmlBuilder.js.map