Autor Beitrag
GruppeCN
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 322



BeitragVerfasst: Mi 04.10.06 18:05 
Hi,

ich hab ein kleines Problem mit dem Auslesen einer XML Datei über die XMLDoc Unit, also über ein IXMLDocument Objekt.

Das Problem ist, dass in der XML Datei ein Teil so aussieht:

ausblenden XML-Daten
1:
2:
3:
4:
5:
<documents>
  <document name="...">...</document>
  <document name="...">...</document>
  <document name="...">...</document>
</documents>


Wie kann ich jetzt auf alle <document> Tags zugreifen, am Besten in einer Schleife?
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Mo 09.10.06 13:25 
Ist das nicht eine XML mit einem falschen Syntax?

_________________
Programmers never die, they just GOSUB without RETURN
GruppeCN Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 322



BeitragVerfasst: Mo 09.10.06 16:21 
Nein, warum sollte es das sein?

Aber ich hab die Lösung schon gefunden, man kann nämlich statt den Tagnamen auch die Indices verwenden ;)

_________________
Warum sind die Sachen, die du suchst, immer da, wo du zuletzt nachsiehst?
Weil du aufhörst zu suchen, wenn du sie gefunden hast.