XPath 2.0
//div[ends-with(@tagname, 'Destination')]
XPath 1.0
//div[substring(@tagname, string-length(@tagname)
- string-length('Destination') + 1) = 'Destination']
More Related Contents:
- Testing text() nodes vs string values in XPath
- How can I find an element by CSS class with XPath?
- XPath to match @class value and element value?
- How to use XPath contains() for specific text?
- How to select first element via XPath?
- Why is XPath contains(text(),’substring’) not working as expected?
- Why are bullets not appearing on posts? [closed]
- Can you provide some examples of why it is hard to parse XML and HTML with a regex? [closed]
- Scraping html tables into R data frames using the XML package
- Create HTML Table with SQL FOR XML
- Why does my XPath query (scraping HTML tables) only work in Firebug, but not the application I’m developing?
- How to avoid joining all text from Nodes when scraping
- How do I escape ampersands in XML so they are rendered as entities in HTML?
- Selecting a css class with xpath
- Case insensitive XPath contains() possible?
- html parsing of cricinfo scorecards
- How to calculate the XPath position of an element using Javascript?
- How To Auto-Format / Indent XML/HTML in Notepad++
- Converting HTML to XML
- Space Before Closing Slash?
- White space inside XML/HTML tags
- Valid content-type for XML, HTML and XHTML documents
- Is it possible to have HTML text or CDATA inside an XML attribute?
- Is it possible to insert HTML content in XML document?
- XPath:: Get following Sibling
- Is whitespace allowed within XML/HTML tags?
- How to handle xml/html in git feature branch workflow?
- Line Break in XML? [duplicate]
- Show Youtube video source into HTML5 video tag?
- highlight words in html using regex & javascript – almost there