procedure TXMLCfgDoc.FindOrCreateSection(ASection: string);begin SectionNode:=DocumentElement.FindNode(ASection); if not assigned(SectionNode) then begin SectionNode:=CreateElement(ASection); DocumentElement.AppendChild(SectionNode); end;end;
Hi stocki, I'm developing a new approach to write and read XML, see here:http://www.lazarus.freepascal.org/index.php/topic,19717.msg113830.html#msg113830any doubts, I can help.Thanks.