XHTML - the eXtensible HyperText Markup Language - is simply HTML 4.0 written as an application of XML, and as such opens up the possibility of manipulating HTML in the same way as you would work with XML.