dhtmlxGrid from table - xhtml example?

I need the dxhtmlgrid to work in a xhtml page. All the examples are in plain html and when I try and convert to xhtml I get errors. Does anyone have a working example of a dhtmlxgrid from an html table in a xhtml page?

Actually all examples are using XHTML doctype ( but still are served as text/html )

@stanislav

The examples aren’t Xhtml. They have tags that aren’t compliant. i.e.
with no closing tag.

It may be not 100% valid XHTML, yes, but they are provide XHTML doctype.
Component was designed for usage in HTML mode, so they will work while you serving content as text/html. If content server with xml content-type, browser will use different processing engine and workability of components is not guaranteed.