Task: XPath Selection of Elements with Attributes Containing a Substring
Task: XPath Selection of Elements with Attributes Containing a Substring: a task in Terminal-Lego-15k (Harbor dataset). You are given an XML file containing multiple elements with a prop attribute. Your task is to write a command-line solution that uses XPath to select all elements whose prop…
The task
You are given an XML file containing multiple elements with a `prop` attribute. Your task is to write a command-line solution that uses XPath to select **all elements** whose `prop` attribute **contains** the substring `Foo`, and write the matching elements to an output file.
Part of PrimeIntellect/Terminal-Lego-15k.