I have a file xml like this:
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1">
<g ID="Prova1"/>
<g ID="Prova2"/>
</svg>
I need to add some attributes in the nodes For example:
<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1">
<g ID="Prova1" onclick="prova()" />
<g ID="Prova2" onclick="prova()" />
</svg>
Where the id is null i don't do something. I use VB.net and class XElement