AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

parse an xml file with nested nodes

Ein Thema von sdean · begonnen am 6. Okt 2010 · letzter Beitrag vom 7. Okt 2010
Antwort Antwort
sdean

Registriert seit: 5. Dez 2009
64 Beiträge
 
#1

parse an xml file with nested nodes

  Alt 6. Okt 2010, 20:03
Delphi-Version: 7
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 !
  Mit Zitat antworten Zitat
alzaimar
(Moderator)

Registriert seit: 6. Mai 2005
Ort: Berlin
4.956 Beiträge
 
Delphi 2007 Enterprise
 
#2

AW: parse an xml file with nested nodes

  Alt 7. Okt 2010, 06:22
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.
"Wenn ist das Nunstruck git und Slotermeyer? Ja! Beiherhund das Oder die Flipperwaldt gersput!"
(Monty Python "Joke Warefare")
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:19 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