Is there any way to extract a particular html tag like <div by providing it's class name?
i am usually following split or extract which i feel is lengthy.
Also can i give " in delimiter text? It is not allowing me to "Hi this is "M" "( for extract function start and end delimiters).
Please provide your views.
Discussion posts and replies are publicly visible
Try using xpathsnippet.
xpathsnippet("<div class='cls'>Hello</div>", "//div[@class='cls']/text()")
What if i have nested div's? can i just give the outermost div's class name ? Please suggest.
You have to use xpath syntax to retrieve what ever you want to retrive