AGB  ·  Datenschutz  ·  Impressum  







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

XPath mit Delphi

Offene Frage von "the_invincible"
Ein Thema von the_invincible · begonnen am 1. Okt 2008 · letzter Beitrag vom 2. Okt 2008
Antwort Antwort
the_invincible

Registriert seit: 11. Aug 2008
3 Beiträge
 
Delphi 2007 Enterprise
 
#1

XPath mit Delphi

  Alt 1. Okt 2008, 14:39
Hallo,

mein erster Post hier.

ich habe hier ein Beispiel XML:

<message type="response" id="a3f2ae129cbff89aebb32ca">
<data type="raw_select">
<table name="M0001_DATA_TABLE" id="abcdefg" select="33321">
<header><column name="COLA" data_type="INT" index="1"/><column name="COLB" data_type="VARCHAR" index="2"/></header>
<row><column index="1">12345</column><column index="2">BONGO</column></row>
<row><column index="1">12345</column><column index="2">BINGO</column></row>
</table>
</data>
</message>

ich brauch eine Zugriffmöglichkeit via XPath

//message/data/table

wie realisiere ich das ?

lieben Gruss
Jan Bludau
  Mit Zitat antworten Zitat
shmia

Registriert seit: 2. Mär 2004
5.508 Beiträge
 
Delphi 5 Professional
 
#2

Re: XPath mit Delphi

  Alt 1. Okt 2008, 18:47
Hier erst mal ein XML Tutorial: http://www.delphipraxis.net/internal...ect.php?t=8184
Für XPath gibt es zwei Methoden:
selectNodes(XPathAusdruck), wenn du mehrere Knoten als Ergebnis erwartest
SelectSingleNode(XPathAusdruck), wenn du max einen Knoten als Ergebnis erwartest
Andreas
  Mit Zitat antworten Zitat
the_invincible

Registriert seit: 11. Aug 2008
3 Beiträge
 
Delphi 2007 Enterprise
 
#3

Re: XPath mit Delphi

  Alt 2. Okt 2008, 07:20
vielen dank.

Das klingt schonmal sehr gut.
Auch das Tutorial werde ich mir mal ansehen

Gruss
Jan
  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 00:14 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