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.

[VBScript] Zugriff auf XML mittels XPath

Empfohlene Antworten

Hallo zusammen,

ich suche nun schon seit ein paar Tagen nach einer Lösung, werde über Google aber leider nicht fündig.

Und zwar habe ich einen XPath-Ausdruck (//div[@id=main]/div[2]/table/tbody/tr[12]/td[1]) mit dessen Hilfe ich versuchen möchte zu prüfen, ob in einer HTML-Tabelle auf einer Webseite alle Zeilen automatisch erstellt wurden (ich will nur schauen, ob 12 TR-Tags vorhanden sind, ob diese Zeilen richtig befüllt sind ist mir erst mal Schnuppe.

Wenn ich nun per


    set xmldoc = CreateObject("MSXML2.DOMDocument.3.0")


    xmldoc.async = False

    xmlDoc.load("http://www.example.org/index.jsp")


    Set NodeList = xmldoc.documentElement.selectNodes("//div[@id='main']/div[2]/table/tbody/tr[12]/td[1]")

    For Each Node In NodeList

        MsgBox Node.text

    Next

versuche auf die Seite zuzugreifen, dann bekomme ich jedoch die Meldung Objekt nicht vorhanden "xmldoc.documentElement".

Hat jemand vielleicht eine Idee, wie ich das Ganze zum Laufen bekomme(n) kann?

Also ich will im Endeffekt schauen, ob auf http://www.example.org/index.jsp die Tabelle mit 12 TR-Tags vorhanden ist.

Über Hilfe wäre ich sehr dankbar, da ich echt schon langsam am Verzweifeln bin.

Vielen Dank und viele Grüße,

Dirk

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.