import { BaseNode } from "./BaseNode"; export type TStringNode = Pick; export class StringNode extends BaseNode { _name = 'String'; context: string | null = null; value?: string | number | null = null; constructor(payload: Partial = {}) { super(); this.fill(payload); } toXmlElement() { return { _name: this._name, _attrs: { context: this.context, }, _content: this.value } } }