HF RL Explorer

Task: XPath Query for Elements with Text Containing a Substring (Including Mixed Content Nodes)

Task: XPath Query for Elements with Text Containing a Substring (Including Mixed Content Nodes): a task in Terminal-Lego-15k (Harbor dataset). When using XPath's contains(text(), 'some string') on XML documents, the expression may not behave as expected for elements that have mixed content (i.e…

The task

When using XPath's `contains(text(), 'some string')` on XML documents, the expression may not behave as expected for elements that have mixed content (i.e., elements containing both text and child elements, resulting in multiple text subnodes). The `text()` function returns a node-set, and `contains()` only evaluates…

Part of PrimeIntellect/Terminal-Lego-15k.