我用的是XMLDocument控件
在我写好
  XMLDocument1.CleanupInstance;
  XMLDocument1.Options := [doNodeAutoCreate,doNodeAutoIndent,doAttrNull,doAutoPrefix,doNamespaceDecl];
  //XMLDocument1.Options := [doNodeAutoIndent,doAttrNull];
  XMLDocument1.Active := True;
  XMLDocument1.Version := '1.0';
  XMLDocument1.Encoding := 'UTF-16';
  XMLDocument1.AddChild('NewDataSet');增加子接点若干后,没有保存再获取字接点就对应不上来
读出错了~!`不知道有人是否碰到过,谢谢帮帮解决当我不用自动换行时,一切操作能正确显示
解决就接贴