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.
次のように、単純な xml 要素を (id で) 一致させるにはどうすればよいですか。
<g id="crop"></g>
正規表現を使用していますか?
ありがとう
反対票を投じるリスクがあります...仕事に適したツールを使用するのはどうですか?
var xmlStr = "<g id=\"crop\"></g>"; var att = XElement.Parse(xmlStr).Attribute("id"); var id = (string)att;