first
This commit is contained in:
25
node_modules/@rgrove/parse-xml/dist/lib/XmlProcessingInstruction.js
generated
vendored
Normal file
25
node_modules/@rgrove/parse-xml/dist/lib/XmlProcessingInstruction.js
generated
vendored
Normal 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
|
||||
Reference in New Issue
Block a user