I could really use some help with an XPath for my Contentment Data Source!
This XPath works for selecting all appliances children of the finishes node. $site/finishes/appliances
I need to filter further to select all appliances that have the attribute productType = “XYZ”. Note: productType is a checkbox list so it’s an IEnumerable. I’ve tried all of the following, but have been unable to find the XPath that works.
I don’t know exactly how Umbraco content gets serialized to XML for use with XPath these days, but in the old days, properties were child elements of the document; only @nodeName and @template etc. were real XML attributes - so my guess is that if you take off the ‘@’ sign, most of your XPaths above will actually work; I’d start with this to see if you’re getting anywhere: