Need help with API Values
-
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"),
),
-
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"),
),
-
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"),
),
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.