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.
我正在使用 XPath 选择一些节点,并希望使用通配符。这可能吗?
像下面这样的东西会很有用:
foreach (XmlNode xml_node in xml_document.SelectNodes("/Data/Customers/D*")) { // }
试试这个:
/Data/Customers/*[starts-with(name(.), "D")]