Bialecki
Bialecki

Reputation: 31061

Is there an open source Java package that has classes representing HTMLElements?

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?

Upvotes: 1

Views: 99

Answers (3)

Brian Agnew
Brian Agnew

Reputation: 272337

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

Upvotes: 1

tangens
tangens

Reputation: 39733

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

Upvotes: 0

Carl Smotricz
Carl Smotricz

Reputation: 67780

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?

Upvotes: 2

Related Questions