Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Need help with API Values

Need help with API Values

Scheduled Pinned Locked Moved C#
questioncsharpdatabasexmljson
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Bootzilla33
    wrote on last edited by
    #1

    I asked this question in another thread but no one answered it so I'm creating a new thread to see if someone can help. I need help with pass the value in the API to XElement in C# Here the a piece of the API schema:

    Event Status

    Is this how that would be done?

    new XElement("EventStatus", "Event Status"),

    ),

    L J 2 Replies Last reply
    0
    • B Bootzilla33

      I asked this question in another thread but no one answered it so I'm creating a new thread to see if someone can help. I need help with pass the value in the API to XElement in C# Here the a piece of the API schema:

      Event Status

      Is this how that would be done?

      new XElement("EventStatus", "Event Status"),

      ),

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Try the XML / XSL Discussion Boards[^].

      1 Reply Last reply
      0
      • B Bootzilla33

        I asked this question in another thread but no one answered it so I'm creating a new thread to see if someone can help. I need help with pass the value in the API to XElement in C# Here the a piece of the API schema:

        Event Status

        Is this how that would be done?

        new XElement("EventStatus", "Event Status"),

        ),

        J Offline
        J Offline
        jschell
        wrote on last edited by
        #3

        Bootzilla33 wrote:

        Is this how that would be done?

        No. From the fragment you have an 'element' which has an 'attribute' which has a 'name' of "name" (the two are not the same) and has a 'value' of "EventStatus". Then you have another attribute also. Then that element has other elements under it. The documentation for XElement demonstrates some of this and more importantly demonstrates how you can print out the result so you can see it yourself. XElement Class (System.Xml.Linq)[^] You can look for other examples using XElement and XAttribute. I want to emphasize that figuring out how to print these out is the most important thing you can learn. You need that even once you understand most of it.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups