Autor Beitrag
r4id3n
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 115

Win XP Home, Win XP Pro
D6 Prof, D7 Ent, K3 Ent
BeitragVerfasst: So 19.12.04 16:05 
Hallo zusammen,

ich suche eine HTML-Parser komponente, die sowohl existierende Webseiten Parsen, sowie neue "erstellen" kann ...

Mir geht es nicht darum die Tags durchzugehen, sonern vielmehr sowas ala

Parser.Header.Title:='blabla';
Parser.Header.add('wasweisichwas');

Falls jemand eine Komponente kennt (möglichst GPL), würde es mich freuen, wenn derjenige sich melden würde ;-)

THX
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mo 20.12.04 15:04 
acuh schonaml gesucht ? Suche in: Delphi-Forum, Delphi-Library HTML PARSER

_________________
In the beginning was the word.
And the word was content-type: text/plain.
r4id3n Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 115

Win XP Home, Win XP Pro
D6 Prof, D7 Ent, K3 Ent
BeitragVerfasst: Mo 20.12.04 15:35 
Alles nicht das, was ich suche!
Deshalb bitte, erst lesen, dann posten!

Ich habe explizit nach einem Parser gefragt, der z.b. das "Dokument" in teile zerlegt, so das div. values direkt zugriefbar sind!

Zudem muss das ganze auch anders herrum funktionieren!
Also, elemente einfügen und dann HTML ausspucken!
Grendel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 443

Gentoo Linux, MacOS X, Win 2000
D5 Ent, D7 Ent, Lazarus, Anjuta, MonoDevelop
BeitragVerfasst: Mo 20.12.04 15:46 
Eine solche (freie) Komponente ist mir nicht bekannt.
Aber wenn es auch XHTML sein darf nimm einfach einen XML Parser deiner Wahl.

Bis neulich ...
r4id3n Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 115

Win XP Home, Win XP Pro
D6 Prof, D7 Ent, K3 Ent
BeitragVerfasst: Mo 20.12.04 15:53 
Leider nicht .... :-(
Dann werd ich wohl nicht drum herrum kommen, mir sowas selber zu schreiben!

Mist
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 21.12.04 13:45 
warscheinlich !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
r4id3n Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 115

Win XP Home, Win XP Pro
D6 Prof, D7 Ent, K3 Ent
BeitragVerfasst: Mi 29.12.04 16:21 
So, nach gut 2 tagen arbeit ist der parser fertig .... Falls jemand interesse hat ...
Es gilt wie immer:

Für GPL Projekte stelle ich den Source kostenlos zur Verfügung, eine erwähnunh wäre aber nett.
Alle anderen interesennten, die an einer kommerziellen Software arbeiten, stelle ich den Source gegen eine kleine Spende zur verfügung!

Was kann der Parser:

Das Dokument wird in einzelne Objekte zerlegt. Jeder bereich (also z.B. den <HTML> ... </HTML>) wird in einzelne Objekte zerlegt.

So ist es sehr einfach möglich nach bestimmten tags zu suchen oder an beliebiger stelle einzfügen. Auch Script oder Contentfilter lassen sich so sehr einfach gestalten.

Das ganze ist natürlich performanceoptimiert und verwendet assemblerroutinen!

Greets
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Mi 29.12.04 17:16 
ja, ich hätte interesse.
evtl publizierst du den hier unter open source units ?

_________________
In the beginning was the word.
And the word was content-type: text/plain.
r4id3n Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 115

Win XP Home, Win XP Pro
D6 Prof, D7 Ent, K3 Ent
BeitragVerfasst: Mi 29.12.04 23:52 
Ich werds noch ein wenig optimieren und dokumentieren .... ;-)

Ich denke mal, dass ihr morgen was zu sehen bekommt!
r4id3n Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 115

Win XP Home, Win XP Pro
D6 Prof, D7 Ent, K3 Ent
BeitragVerfasst: Do 30.12.04 00:54 
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Do 30.12.04 11:55 
super sache !

_________________
In the beginning was the word.
And the word was content-type: text/plain.