In an XML file such as :
<Snippets>
<Snippet name="abc">
<SnippetCode>
code goes here
</SnippetCode>
</Snippet>
<Snippet name="def">
<SnippetCode>
code goes here
</SnippetCode>
</Snippet>
</Snippets>
How can I remove an element when only its attribute name (like abc
or def
) is given?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…