Hi, I have this XML:
<?xml version="1.0" encoding="utf-8"?>
<ConfiguraCanale ID_Comando="1">
<canaleDigitalOUTPUT ID_Canale="1" >
<stato>0</stato>
</canaleDigitalOUTPUT>
</ConfiguraCanale>
<ConfiguraCanale ID_Comando="2">
<canaleAnalogicoINPUT ID_Canale="2">
<timeAttesaPreCamp>00:03:00</timeAttesaPreCamp>
</canaleAnalogicoINPUT>
</ConfiguraCanale>
</Comandi>
I must select the node canaleAnalogicoINPUT, and it's simple, but I must also take ID_Comando from ConfiguraCanale up to canaleAnalogicoINPUT.. because I select the node canaleAnalogicoINPUT I can't get attribute of the node ConfiguraCanale.
I use Linq to XML from few time...
Thanks!!!