Download this file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
(* Adds a comment; XML: <!-- MyComment --> XML.NewComment(Comment: = 'MyComment'); *) METHOD PUBLIC NewComment VAR_INPUT Comment : T_MaxString; IF xTagOpen THEN Buffer.Append := TAG_CLOSE; xTagOpen := FALSE; END_IF; Buffer.Append := OPEN_COMMENT; Buffer.Append := Comment; Buffer.Append := CLOSE_COMMENT;