Autor Beitrag
Christian V.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Mi 08.03.06 18:13 
Hi,
Ich möchte bei einem Xml file ein paar sachen auslesen.
Das file sieht änhlich aus wie das:
ausblenden XML-Daten
1:
2:
3:
4:
5:
6:
7:
8:
9:
<part name="eins">
   <modus>ein</modus>
   <irgendwas>ein</irgendwas>
</part>

<part name="zwei">
   <modus>aus</modus>
   <irgendwas>ein</irgendwas>
</part>

nun möchte ich immer die sachen im part-tag auslesen. also "modus", dann "irgendwas" und wenn noch weitere drin sind die auch automatisch ausliest. Ich meine, dass es alle werte in einem Part-Tag ausliest. und den namen, des part tags. Ihc hab mir gedacht, ich mache das mit der XmlDocument-Komponente. Jedoch komme ich nur soweit, um ein xml file zu öffnen. Kann mir jemand helfen? Freue mich auf eine Antwort.

_________________
Hardware runs the world, software controls the hardware, code generates software - Have You already coded today?
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mi 08.03.06 18:16 
Ganz spontan fällt mir das XML-Tutorial von www.dsdt.info ein.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Christian V. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 311

Win Xp Prof
Turbo Delphi 2005
BeitragVerfasst: Mi 08.03.06 18:22 
Danke, werd mal reinschauen.

_________________
Hardware runs the world, software controls the hardware, code generates software - Have You already coded today?