-
Feb 27th, 2018, 04:11 AM
#1
Thread Starter
Member
[RESOLVED] XML Help
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
-
Feb 27th, 2018, 08:35 AM
#2
Re: XML Help
Give this a try
Code:
Dim foobar As XElement = <InstdAmt Ccy="EUR"><%= row.Cells(17).Value %></InstdAmt>
XML literals make the creation of elements somewhat easier. Also embedded expression are useful.
-
Feb 27th, 2018, 10:12 AM
#3
Thread Starter
Member
Re: XML Help
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)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|