type InstrText = class(OpenXmlPcdata) public function Create();overload; function Create(_node: XmlNode);overload; function Create(_parent: tslobj; _prefix: string; _local_name: string);overload; function Init();override; function InitAttributes();override; function InitNode(_node: XmlNode);override; function Copy(_obj: InstrText);override; property Space read ReadXmlAttrSpace write WriteXmlAttrSpace; function ReadXmlAttrSpace(); function WriteXmlAttrSpace(_value); public // Attributes XmlAttrSpace: OpenXmlAttribute; // Children end; function InstrText.Create();overload; begin {self.}Create(nil, "w", "instrText"); end; function InstrText.Create(_node: XmlNode);overload; begin class(OpenXmlPcdata).Create(_node: XmlNode); end; function InstrText.Create(_parent: tslobj; _prefix: string; _local_name: string);overload; begin class(OpenXmlPcdata).Create(_parent, _prefix, _local_name); end; function InstrText.Init();override; begin {self.}XmlAttrSpace := new OpenXmlAttribute("xml", "Space", nil); end; function InstrText.InitAttributes();override; begin attributes_ := array( {self.}XmlAttrSpace, ); end; function InstrText.InitNode(_node: XmlNode);override; begin if ifObj({self.}XmlNode) then for k,v in child_elements_ do v.InitNode(nil); {self.}XmlNode := ifObj(_node) ? _node : nil; end; function InstrText.Copy(_obj: InstrText);override; begin if not ifnil(_obj.XmlAttrSpace.Value) then {self.}XmlAttrSpace.Value := _obj.XmlAttrSpace.Value; end; function InstrText.ReadXmlAttrSpace(); begin return {self.}XmlAttrSpace.Value; end; function InstrText.WriteXmlAttrSpace(_value); begin {self.}XmlAttrSpace.Value := _value; end;