UNPKG

@openxmldev/linq-to-xml

Version:
20 lines 516 B
/** * @author Thomas Barnekow * @license MIT */ import { XNode } from './internal.js'; export class XProcessingInstruction extends XNode { constructor(target, data) { super(); this.target = target; this.data = data; } /** @internal */ cloneNode() { return new XProcessingInstruction(this.target, this.data); } toString() { return `<?${this.target} ${this.data.trim()}?>`; } } //# sourceMappingURL=XProcessingInstruction.js.map