Autor Beitrag
LittleBen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 258
Erhaltene Danke: 4

Win 7, Mac OS
Delphi 7
BeitragVerfasst: Sa 21.12.13 02:38 
Hallo,
ich suche mich schon den ganzen Tag tot!
Gibt es eine (kostenlose) Möglichkeit, eine HTML-Seite (es handelt sich um eine Tabelle) zu JSON oder XML zu konvertieren?
Wär echt super wenn mir jemand helfen könnte!

Viele Grüße
LittleBen
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Sa 21.12.13 09:50 
Eine fertige Lösung kenne ich leider nicht. Aber du kannst entweder mit dem TWebBrowser und seinem IHTMLDocument2-Interface die Tabelle einfach in eine Struktur laden und diese dann als XML oder JSON (z. B. mit SuperObject) formatiert ausgeben oder du parst den HTML-Code der Web-Seite mit den Funktionen Suche in der Delphi-Reference POS, Suche in der Delphi-Reference COPY & Suche in der Delphi-Reference POSEX.