File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes XSD for HTML elements Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XSD for HTML elements" Watch "XSD for HTML elements" New topic

XSD for HTML elements

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10032


How can I get an XSD representation of a HTML document. I'm looking for a generic XSD which simply represents a valid HTML document.

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
That's not possible, because HTML is not XML. If you're talking about XHTML, then the associated schema is described at

Note that you can't "get an XSD representation of an XHTML document", though - the schema describes ALL valid XHTML documents, not just any particular one.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10032

Thanks Ulf!
I agree. Here's the link:
subject: XSD for HTML elements
It's not a secret anymore!