Hi to all
Using this
New XElement("InstdAmt", row.Cells(17).Value))
i take this
<InstdAmt>"Cell 17 Value"</InstdAmt>
What i have to do to take this???
<InstdAmt Ccy="EUR">"Cell 17 Value"</InstdAmt>
Thanks and regards
Printable View
Hi to all
Using this
New XElement("InstdAmt", row.Cells(17).Value))
i take this
<InstdAmt>"Cell 17 Value"</InstdAmt>
What i have to do to take this???
<InstdAmt Ccy="EUR">"Cell 17 Value"</InstdAmt>
Thanks and regards
Give this a try
XML literals make the creation of elements somewhat easier. Also embedded expression are useful.Code:Dim foobar As XElement = <InstdAmt Ccy="EUR"><%= row.Cells(17).Value %></InstdAmt>
Thank you very much dbasnett
Finally i fount the solution using
Code:Dim Nomisma As String = "EUR"
New XElement("InstdAmt", New XAttribute("Ccy", Nomisma), row.Cells(17).Value)