Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 HtmlAgilityPack。我需要编写 xpath 查询表达式,它将选择除“ol”之外的所有具有“样式”属性的节点,即订单列表节点?有人可以回答这个吗?
尝试这个
doc.DocumentNode.SelectNodes("//body/*[not(self::ol)][@style]");