Representing structure of an HTML document?

Hello,

Can anybody recommend a library that I can use to represent the

structure of an HTML document? (For example, for generating web

pages.)

Or should I go XML? And in that case, can anybody point to some

examples of what the current best practices are for generating web

pages this way?

Thanks in advance,

Hernan

[370 byte] By [Hernan1a] at [2007-11-27 1:25:09]
# 1

An HTML document is a tree. It's not hard to write one of those.

You can also use XML, which also represents a tree. Arguably this doesn't really solve the problem, though; it's just a lateral move. But the org.w3c.dom package is full of classes that represent XML trees for you. It may be overkill to use that though.

What are you actually trying to accomplish? Why do you want to use this to generate HTML, as opposed to, say, JSP?

paulcwa at 2007-7-12 0:17:33 > top of Java-index,Java Essentials,New To Java...