Results 1 to 3 of 3

Thread: [RESOLVED] XML Help

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2010
    Posts
    63

    Resolved [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

  2. #2
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,764

    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.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  3. #3

    Thread Starter
    Member
    Join Date
    Nov 2010
    Posts
    63

    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
  •  



Click Here to Expand Forum to Full Width