Hello,
I have a list of XMLElements. I would like to suppress those which have a name different from a specific name for example "YO". Here an example :
XMLtest = {XMLElement["YO", {}, 2],XMLElement["BA", {}, 2]}
Here my code
TRI = DeleteCases[XMLtest, XMLElement[_, _, _] /; XMLElement[_, _, _]<>XMLElement["YO", _, _], Infinity]
Consequently, i would like to obtain a list with only the XMLElement which has the name "YO".
I'm sorry if my question is quiet simple. I have started using mathematica not a long time ago.
Thanks a lot for your help.