Does anyone know of a project that puts an XML wrapper (markup) or command line interface around X Window? That way one can use or interface with an X Window "browser" without writing C.

Maybe xdotool [0] is what you're looking for.

[0] https://github.com/jordansissel/xdotool/