Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
2 answers
132 views

How to read entity object in C#

Whenever I try to get a specific value from an object my editor throws the error: 'Object does not contain method for {variable name}'. Here is my code so far: EntityCollection accounts = service....
JH 902's user avatar
  • 33
1 vote
0 answers
261 views

Deserialize HttpResponseMessage of Soap:Envelope to C# Object

I'm calling Soap method and receiving HttpResponseMessage as below : HttpResponseMessage createResponse = await ExecuteMyEndPoint(endpoint, requestXMLstring, client); And reading that as a String ...
Unknown Coder's user avatar
0 votes
1 answer
69 views

Unable to read XML to object

I could use some help in reading this xml as an object in C#, the problem I have is with "ExtensionData" element, I can read everything in this xml except what's inside that element and I ...
FSergiu89's user avatar
1 vote
1 answer
45 views

Return object of Type T from XML data

I am parsing an XML and able to extract data into List of object using below code. But the front end uses an type of T binding data object which is currently working. Once I return ienumerable it is ...
user3038399's user avatar
0 votes
1 answer
58 views

Jsonconvert - How to define structure

Good evening. I have an XML structure like this: string cRet = "<bands>"; cRet += "<artist>"; cRet += "<name>"; cRet += "Vasco"; cRet += &...
Stefano Giovannelli's user avatar
1 vote
2 answers
53 views

XML Deserialization Diffrent Objects C#

maybe someone can give me a hint to handle a specific situation. I have an XML which i can not change which looks like this: <?xml version = "1.0" encoding = "ISO-8859-1"?> &...
Hendriks91's user avatar
1 vote
2 answers
72 views

Reading XML to create objects

Description I have a string representing an XML document, that I want to parse and create a collection of objects of the following types: public class Invoice { public const string XmlName = "...
Al2110's user avatar
  • 576
0 votes
3 answers
73 views

How can I read an XML File and put the info in objects?

I have a function which writes all the Information of objects I have in a list into a XML file. public static void UpdateXML() { XmlWriterSettings settings = new XmlWriterSettings(); ...
baltermia's user avatar
  • 1,277
0 votes
1 answer
410 views

How I transform string xml with Array of Parameters to object in .NET Core

I'm getting an xml string and I need to convert this xml to a .NET object Then, create a service to deserialize or xml. but it's not working in "parameters" prop. Code: [XmlRoot(ElementName = "mse-...
Hirow's user avatar
  • 1
-3 votes
2 answers
116 views

How to print all dates from Weather API XML

Sorry for any lq thing, am new to c#. Am trying to display all dates from XML WEB API... I already printed for only 1 date, I want for 5 days? I need to display in Console application all data for ...
Devin's user avatar
  • 3
-1 votes
1 answer
267 views

Convert objects to XML in .NET Framework

In my work I am maintaining a legacy system (.net framework 4.7). It works a lot by transforming objects to xml (and saving to the database) and also the reverse, xml to objects. Except that the ...
Wesley's user avatar
  • 275
0 votes
1 answer
68 views

deserialization xml string as string element c#

i have a xml string like this: <root> <header> <reqType>REQUEST</reqType> <priority>1</priority> <channel>TTP</channel> ...
Phai Vv's user avatar
-1 votes
1 answer
72 views

XML not being serialised correctly into object

I am trying to serialise a piece of XML that is being returned from a third party API. However when doing so i am only retrieving part of the object upon serialisation. And only some of the values ...
ashley g's user avatar
  • 875
0 votes
0 answers
31 views

Mapping XML to incoming paramaters

I have a piece of XML data that is being sent of to an API, at the moment the XML data contains hard coded values. I want to make this dynamic. Essential when a user sends a POST request to my API ...
ashley g's user avatar
  • 875
0 votes
2 answers
354 views

Convert XML to C# object

I am having difficulty trying to convert my XML to a C# object. This needs to be done dynamically. I think the problem exists somewhere in the c# object class. The XML <Sites> ...
ashley g's user avatar
  • 875

15 30 50 per page
1
2 3 4 5