Read the html labels and action

I want to capture the activity while running the application and to create xml.
Which i can use to set up the flow of an application.
I have no clue what you want to achieve and when?

Please elaborate it a bit more.

e.g. I'm running any website.
now I wanted to capture those labels which i hit and pass the value in xml.

now based on xml i will create a document which will be help about work flow for accessing website

either with javascript or use httprequesthandler and use GetRequest-action.

then do something with the content.
regexsearch or parse it as xml and do xpath-queries

ok, thanks a lot