1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23:
| procedure TTurnier.LoadFromFile(const LFileName: String); var xml: IXMLDocument; k: integer; begin xml := NewXMLDocument('1.0'); with xml do begin Encoding := 'iso-8859-1'; NodeIndentStr := #9; Options := [doNodeAutoCreate, doNodeAutoIndent, doAttrNull, doAutoPrefix, doNamespaceDecl]; LoadFromFile(LFileName); Active := True; with DocumentElement do begin for k := 0 to ChildNodes.Count - 1 do begin ShowMessage(ChildValues[k]); end; end; end; xml := nil; end; |