tags:

views:

59

answers:

3

I've noticed that the W3C publishes a set of Java interfaces around HTML elements, but I'm looking for implementations. Apache has HttpComponents, but those are for Http requests, whereas I need classes to wrap HTML elements. Anyone know of a package that will do this for me?

+2  A: 

Well, Nodes in a 'standard' Java org.w3c.dom.Document can represent HTML elements, if you parse a HTML document into a Document.

What exactly should these classes be able to do for you?

Carl Smotricz
I just want to use these objects as models of HTML elements, so anything that implements the standard getters and setters, would be great.
Bialecki
A: 

htmlunit does contain classes for html elements, e.g HtmlAddress.

tangens
+1  A: 

Apache Element Construction Set does this. But I fear it may be a little out of date.

Brian Agnew