This commit is contained in:
2026-03-31 16:38:22 -07:00
commit 38940436a7
2112 changed files with 376929 additions and 0 deletions

View File

@ -0,0 +1,25 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.XmlProcessingInstruction = void 0;
const XmlNode_js_1 = require("./XmlNode.js");
/**
* A processing instruction within an XML document.
*/
class XmlProcessingInstruction extends XmlNode_js_1.XmlNode {
constructor(name, content = '') {
super();
this.name = name;
this.content = content;
}
get type() {
return XmlNode_js_1.XmlNode.TYPE_PROCESSING_INSTRUCTION;
}
toJSON() {
return Object.assign(XmlNode_js_1.XmlNode.prototype.toJSON.call(this), {
name: this.name,
content: this.content,
});
}
}
exports.XmlProcessingInstruction = XmlProcessingInstruction;
//# sourceMappingURL=XmlProcessingInstruction.js.map