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")]