DOM parser

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
eros
I live to help wx-kind
I live to help wx-kind
Posts: 162
Joined: Mon Sep 06, 2004 1:40 am
Location: Argentina

DOM parser

Post by eros » Fri Oct 01, 2004 9:04 am

Does anyone know an open source DOM parser/renderer?

I don't care if its written in C++, C# or any other scripting language
...

geon
I live to help wx-kind
I live to help wx-kind
Posts: 189
Joined: Tue Sep 07, 2004 4:10 pm
Location: Sweden, Uppsala

Post by geon » Fri Oct 01, 2004 4:03 pm

Mozilla?

eros
I live to help wx-kind
I live to help wx-kind
Posts: 162
Joined: Mon Sep 06, 2004 1:40 am
Location: Argentina

Post by eros » Sat Oct 02, 2004 12:13 am

I don't need to display HTML/XML, I need to analize the structure (something like the DOM inspector built-in in mozilla).

Something like this:

http://www.php.net/manual/en/ref.dom.php
...

geon
I live to help wx-kind
I live to help wx-kind
Posts: 189
Joined: Tue Sep 07, 2004 4:10 pm
Location: Sweden, Uppsala

Post by geon » Sat Oct 02, 2004 11:33 am

So you want to import HTML into a DOM structure, modify it and export it back to HTML?

eros
I live to help wx-kind
I live to help wx-kind
Posts: 162
Joined: Mon Sep 06, 2004 1:40 am
Location: Argentina

Post by eros » Sun Oct 03, 2004 4:05 am

Not planning to export it, only getting some values.

I need to "trace" some stuff in the HTML, at the moment this is beign done by loading the html into a string, and searching and cutting stuff, really nasty imo. (in VB.NET)

It needs to be done from the static HTML, I can't ask for a XML or a script.
...

kaffee
In need of some credit
In need of some credit
Posts: 3
Joined: Sun Aug 29, 2004 9:44 am
Location: Finland

Post by kaffee » Tue Oct 05, 2004 10:27 am

eros wrote:I need to "trace" some stuff in the HTML, at the moment this is beign done by loading the html into a string, and searching and cutting stuff, really nasty imo. (in VB.NET)

It needs to be done from the static HTML, I can't ask for a XML or a script.
There is a SGML reader for .NET by Chris Lovett, which you can use just like XmlTextReader. I haven't yet tried it myself, but it looks promising for a HTML parsing job.

Post Reply