Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   parse an xml file with nested nodes (https://www.delphipraxis.net/155063-parse-xml-file-nested-nodes.html)

sdean 6. Okt 2010 20:03

Delphi-Version: 7

parse an xml file with nested nodes
 
Hi , I've this XML file with nested nodes :

Code:
<?xml version="1.0" encoding="utf-8"?>
       <output>
          <gen_date_tot>
             <Date>2010-10-06</Date>
             <total_entries>1</total_entries>
          </gen_date_tot>
          <entries>
             <entry>
                <url><![CDATA[http://www.mywebsite.com]]></url>
                <log_id>1</log_id>
                <log_detail_url>http://www.myweb.com/log_detail.php?log_id=1</log_detail_url>
                <details>
                   <detail>
                      <ip_address>00.000.00.00</ip_address>
                      <sub_block>00.000.000.0</sub_block>
                      <Tft>lanco</tft>
                      <detail_time>05:00:00</detail_time>
                   </detail>
                </details>
                <submission>
                   <submission_date_time>2010-10-06Tm06:05:00</submission_date_time>
                </submission>
                <verification>
                   <verified>yes</verified>
                   <verification_date_time>2010-10-06Tm10:03:00</verification_date_time>
                </verification>
                <status>
                   <Done>yes</Done>
                </status>
                <target>Bug_01</target>
             </entry>
             </entries>
       </output>
Please how it's possible to parse it , I really tried but i could not reach all * nested * sub nodes .
any sample code please !

alzaimar 7. Okt 2010 06:22

AW: parse an xml file with nested nodes
 
Use MSXML or post your code here. In case you don't know how to use MSXML, either google or check the Delphi OH. Hint: Include XMLIntf and XMLDoc in your code.


Alle Zeitangaben in WEZ +1. Es ist jetzt 16:56 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz