type Modified = 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 Copy(_obj: Modified);override; public // attributes property property XsiType read ReadXmlAttrXsiType write WriteXmlAttrXsiType; function ReadXmlAttrXsiType(); function WriteXmlAttrXsiType(_value); public // Attributes XmlAttrXsiType: OpenXmlAttribute; end; function Modified.Create();overload; begin {self.}Create(nil, "dcterms", "modified"); end; function Modified.Create(_node: XmlNode);overload; begin class(OpenXmlPcdata).Create(_node: XmlNode); end; function Modified.Create(_parent: tslobj; _prefix: string; _local_name: string);overload; begin setsysparam(pn_calcctrlword(), getsysparam(pn_calcctrlword()) .| 0x200); class(OpenXmlPcdata).Create(_parent, _prefix, _local_name); end; function Modified.Init();override; begin pre := {self.}Prefix ? {self.}Prefix + ":" : ""; attributes_ := array(); attributes_pf_ := array( "xsi:type": makeweakref(thisFunction(WriteXmlAttrXsiType)), ); end; function Modified.Copy(_obj: Modified);override; begin tslassigning_backup := tslassigning; tslassigning := 1; class(OpenXmlPcdata).Copy(_obj); if not ifnil(_obj.XsiType) then {self.}XsiType := _obj.XsiType; tslassigning := tslassigning_backup; end; function Modified.ReadXmlAttrXsiType(); begin return {self.}XmlAttrXsiType.Value; end; function Modified.WriteXmlAttrXsiType(_value); begin if ifnil({self.}XmlAttrXsiType) then begin {self.}XmlAttrXsiType := new OpenXmlAttribute("xsi", "type", nil); attributes_[length(attributes_)] := {self.}XmlAttrXsiType; end {self.}XmlAttrXsiType.Value := _value; end;