views:

412

answers:

1

Hi

i want to parse a HTML page which contains some values displayed.That values are updated at regular intervals.I have to get that value from a standalone java program.If i parse the HTML page with some HTML parser the source of that page is displayed instead of that value.i tried with NEkoHTML parser and JTidy parser but there are not the right parsers for my task.If any body having idea about this please help me.

A: 

It sounds like what you want to do is determine if a value is dynamic and if it is, don't grab the value, but the code that generates the value.

If the value is generated using server-side code, you aren't able to do what you want. If it's generated with client-side code (such as JavaScript), you could start parsing through the files to determine what calls are made on certain events and actions, but it's a non-trivial task.

Thomas Owens
Its a client side script(JavaScript) only.But i am beginner of javascript so please can you provide some simple code or any other source to learn parings the java script code.
Rajapandian
@Rajapandian: let us be clear. Java and Javascript are completely different languages. Which one are you talking about?
Stephen C
In Java, is it possible?.
Rajapandian