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-Documentparser

Empfohlene Antworten

Hallo,

habe ein Problem:

ich möchte gern einen Programm schreiben mit dem ich aus einem HTML-Dokument bestimmte Elementinhalte rauslesen kann.

Zum Beispiel:

lese inhalt aus dem "<a> Tag" od.

speicher mir alle "<a> Tags" in einem Map usw.

Hat jemand einen Tipp welche Packages ich anschauen soll.

Bitte nicht mit Reguläre Ausdrücke anfangen!

Thx

Ich würde das mit dem StringTokenizer im java.util Package machen.

Wie bitttttteeeeeee ???????????????????? :confused: :confused: :confused: :confused: :confused:

Theoretisch würde es schon gehen aber das dauert ja ewig, wenn ich byte für byte mich durch das Dokument (die Dokumente) kämpfen müsste. :P

Hab scho ne Lösung gefunden.

JTidy heisst das Zauberwort.

Trotzdem Danke.

nichts für ungut!

Wenn ihr mal einen richtigen HTML Parser braucht, dann könnt ihr euch sowas mit ANTLR (einem Parser-Generator ) machen (www.antlr.org).

Für HTML ist sogar ein Beispiel dabei, wenn ich mich nicht irre.

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.