XPath search based on dynamic regular expressions
问题 I have an XML like the one below: <?xml version="1.0" encoding="UTF-8"?> <Configuration> <Destinations> <Destination name="DEST1" > <From>AMA*</From> </Destination> <Destination name="DEST2" > <From>AMAZON</From> </Destination> <Destination name="DEST3" > <From>EBAY</From> </Destination> <Destination name="DEST4" > <From>*</From> </Destination> </Destinations> </Configuration> I want to query and find out all desintations that match a provided input. If i specify EBAY i want the xpath to