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.

HTML zu XML geparst, Fragen zum Zugriff

Empfohlene Antworten

Veröffentlicht

Heyy Leute,

ich habe folgendes Problem:

Ich nutze tagsoup und parse damit eine HTML-Datei zu einer XML-NodeList.

Das Funktioniert auch soweit.

Leider weiß ich so garnicht, trotz probieren, wie ich z. B. bei einem Div-Tag auf das Attribut 'Name' oder 'ID' zugreifen kann.

Könnt ihr mir einen Schupps in die richtige richtung geben?

MFG Shiggy

  • Autor

Mir ist gerade aufgefallen dass alle Tags in meiner NodeList null sind, also ausgabe ist dann:

[head: null]

[title: null]

[meta: null]

[meta: null]

[meta: null]

[meta: null]

[meta: null]

[meta: null]

[meta: null]

[meta: null]

[link: null]

[link: null]

[body: null]

[div: null]

[h1: null]

[br: null]

[b: null]

[img: null]

[div: null]

Können die überhaupt mit ID und Name und dem ganzen HTML-Deklarationsschlonz gefüllt sein? und dann eben die Frage von oben: wie lese ich das aus?^^

greetz Shiggy

  • Autor

Liebe Gemeinde,

Die Sache hat sich jetzt endlich erledigt. Für mein Vorhaben werde ich JSoup benutzen. Habe die ersten Tests durchgeführt und ich kann relativ schnell und einfach auf alles zugreifen was ich will und brauche.

Greetz Shiggy

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.