i need to add a new Element to a specific part of xml tree but i can't make it work.
this is my xml input
<structMap LABEL="Logical Structure" TYPE="LOGICAL">
<div ID="DIVL1" TYPE="CONTENT">
<div ID="DIVL2" TYPE="" DMDID="MODSMD_ARTICLE1" LABEL="">
<div ID="DIVL3">
<div ID="DIVL31" TYPE="TITLE" />
</div>
</div>
</div>
</structMap>
and here is my desired output
<structMap LABEL="Logical Structure" TYPE="LOGICAL">
<div ID="DIVL1" TYPE="CONTENT">
<div ID="DIVL2" TYPE="" DMDID="MODSMD_ARTICLE1" LABEL="">
<div ID="DIVL3">
<div ID="DIVL31" TYPE="TITLE">
<fptr>
<area BETYPE="IDREF" FILEID="ALTO0011" BEGIN="P11_TB3"/>
</fptr>
</div>
</div>
</div>
</div>
</structMap>
and here is my code
var b = dc.Descendants().Attributes("TYPE").Where(ee => ee.Value == "TITLE").First();
i don't have b.AddFist. how can i make it work?