Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2007.11.18;
Скачать: CL | DM;

Вниз

подскажите пример работы с TXMLDocument   Найти похожие ветки 

 
Ega23 ©   (2007-10-25 23:24) [0]

в Demos. Или ткните в какую-нибудь статью в сети. Сам что-то сходу не нашёл...  :(


 
Reindeer Moss Eater ©   (2007-10-26 09:27) [1]

with TXMLDocument.Create(nil) do
 begin
  Active := True;
  Encoding := "windows-1251";
  with AddChild("root") do
   begin
    with AddChild("child") do Attributes["name"] := "name1";
    with AddChild("child") do Attributes["name"] := "name2";
    with AddChild("child") do
     begin
      Attributes["name"] := "name3";
      with AddChild("somechild") do Attributes["id"] := 1;
     end
   end;
  SaveToFile("sample.xml");
  ShowMessage(xml.Text);
 end;

Если же надо читать готовый, то удобнее импортировать библиотеку типов и использовать IXMLDomDocument2 понимающий XPath



Страницы: 1 вся ветка

Текущий архив: 2007.11.18;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.018 c
2-1193115704
031178
2007-10-23 09:01
2007.11.18
Как программно выделить нужный пункт меню в TTreeView ?


2-1193242917
Начинающий
2007-10-24 20:21
2007.11.18
fast reports 2.54


3-1183995926
rule
2007-07-09 19:45
2007.11.18
почему в compound sql statement при подулючении к MSSQL Server


15-1192084652
Azize
2007-10-11 10:37
2007.11.18
Microsoft vs Borland


15-1192572051
Piter
2007-10-17 02:00
2007.11.18
MIRANDА - plugin на Delphi - 2