Files
beall-11ty/node_modules/@rgrove/parse-xml/dist/lib/XmlText.js
2026-03-31 16:38:22 -07:00

23 lines
597 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.XmlText = void 0;
const XmlNode_js_1 = require("./XmlNode.js");
/**
* Text content within an XML document.
*/
class XmlText extends XmlNode_js_1.XmlNode {
constructor(text = '') {
super();
this.text = text;
}
get type() {
return XmlNode_js_1.XmlNode.TYPE_TEXT;
}
toJSON() {
return Object.assign(XmlNode_js_1.XmlNode.prototype.toJSON.call(this), {
text: this.text,
});
}
}
exports.XmlText = XmlText;
//# sourceMappingURL=XmlText.js.map