aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XSD for HTML elements" Watch "XSD for HTML elements" New topic
Author

XSD for HTML elements

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9427
    
    2

Guys,

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
Marshal

Joined: Mar 22, 2005
Posts: 42280
    
  64
That's not possible, because HTML is not XML. If you're talking about XHTML, then the associated schema is described at http://www.w3.org/TR/xhtml1-schema/.

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.


Ping & DNS - my free Android networking tools app
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9427
    
    2

Thanks Ulf!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: XSD for HTML elements