@openxmldev/linq-to-xml
Version:
LINQ to XML for TypeScript
20 lines • 516 B
JavaScript
/**
* @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