How do you want to parse it ?
With JavaScript ? Then you just have to get the root element (document.documentElement) and parse its nodes tree.
If you want to output it, in plain text, you can wait for browsers to implement LSSerializer.write function, or you'll have to write your own (base as before on a parsing of the nodes-tree)