import BadDataException from "./Exception/BadDataException";
export default class XML {
    get xml() {
        return this._xml;
    }
    set xml(v) {
        if (!v) {
            throw new BadDataException("XML is not in valid format.");
        }
        this._xml = v;
    }
    constructor(xml) {
        this._xml = "";
        this.xml = xml;
    }
    toString() {
        return this.xml;
    }
}
//# sourceMappingURL=XML.js.map