Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Hilfe bei xpath AND operator

Empfohlene Antworten

Hallo,

ich suche nun schon länger im Netz verzweifelt nach einem Beispiel, wo zwei Attribute AND verknüpft werden ... entweder ich finde keines oder aber ich bekomme eine Fehlermeldung / oder das falsche Resultat ... die Ausgangsdatei schaut mal so aus:

<?xml version="1.0" encoding="UTF-8"?>

<bookmaker-tournaments>

  <bookmaker-tournament id="1" bookmaker-id="1" tournament-id="11" scraping-url-params="46"/>

  <bookmaker-tournament id="6" bookmaker-id="1" tournament-id="19" scraping-url-params="137"/>

  <bookmaker-tournament id="2" bookmaker-id="2" tournament-id="11" scraping-url-params="10; 1021; 33"/>

  <bookmaker-tournament id="3" bookmaker-id="3" tournament-id="11" scraping-url-params="1133; All Football_England_Premier League"/>

  <bookmaker-tournament id="4" bookmaker-id="4" tournament-id="11" scraping-url-params="3"/>

  <bookmaker-tournament id="5" bookmaker-id="5" tournament-id="11" scraping-url-params="SOCMENEURENGFST"/>

</bookmaker-tournaments>
Nun möchte ich mittels einer Abfrage alle Einträge (bookmaker-tournament) wo die bookmaker-id 1 ist und die tournament-id 19 Ich habe es so verstanden: ->
//bookmaker-tournaments/bookmaker-tournament[@bookmaker-id='1' AND @tournament-id='19']

...

hier bekomme ich immer zwei! Ergebnisse ... jeweils bookmaker-id 1 und tournament id 11 und 19 :rolleyes: ... ich packe es echt nimmer hier .. habe schon mal die Abfrage umgedreht (zuerst nach tournament id gesucht) und da hat es geklappt .. es scheint also, als das die zweite Abfrage ignoriert wird? ... echt confused hier .. wer kann mir helfen?

Gruß

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.