Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
FeatureExtraction - xpath - span
ullash
Hi,
I am trying to use FeatureExtraction to extract some text from a web page (XHTML). But it does not seem to work.
The xpath location i get using mozilla firebug is: /html/body/span/div/div/h2
For Rapidminer the xpath query i am using is: /h:html/h:body/h:span/h:div/h:div/h:h2/text()
The above xpath query does not seem to work in rapidminer.
But if i remove the span tag from the webpage, the resulting xpath query seems to work. [/h:html/h:body/h:div/h:div/h:h2/text()]
So my question is how do i extract text from a webpage which has a span tag.
Thanks
Find more posts tagged with
AI Studio
Accepted answers
All comments
IngoRM
Hi,
I have actually not really an idea right now but it could be that the problem is that "span" is actually not allowed to have inner container tags like div etc., right? Maybe this is the reason why xpath fails here.
Cheers,
Ingo
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups