startswith - Xpath - Selecting attributes using starts-with -
i trying write xpath look selects div tags have attribute id start companycalendar. below snippet of html looking at:
<td class="some class" align="center" onclick="calendar_dayclicked(this,'eventcont','event');"> <span class="text"></span> <div id="companycalendar02.21" class="pop calendarclick" style="right: 200px; top: 235px;"></div>
there multiple divs have id companycalendar02.21 each new month in calendar, alter id. example, next month companycalendar02.22. able select of divs equal companycalendar*
i rather new @ using illustration off net seek , xpath look work no avail. help appreciated.
i trying write xpath look selects div tags have attribute id start companycalendar.
the next look perhaps looking for:
//div[starts-with(@id,'companycalendar')]
what does, in plain english, is
return div
elements in xml document have attribute id
attribute value starts "companycalendar".
xpath startswith
No comments:
Post a Comment