xml

  1. A

    Error CA1701 from XML String that can't be read as a value

    Hi All I have a really odd issue. I've done an Add-Migration in EF CORE, and it's added a new migration script into my project. However my issue is that the project can't compile anymore because of the XML file that was added from the Add-Migration command. The code below is what's giving my...
  2. C

    Adding daily numbers from xml file to produce a total

    Hi, I'm new to this forum and I have a question: how do I sum up all the values in a XML file to get the total? Any help would be appreciate it,
  3. xtian

    Why does restclient.executeasync<list<T>>() return null for an array-valued JSON response?

    I need help with the project I am currently working on. Please bare with me, I'm not good at coding specially with c# this is my first attempt. I have a button the will pull the data from webservice. Saving of data to database will be triggered with the same button. I have manage to display the...
  4. M

    XML serialisaton. Error: XmlException: Root element is missing.

    Hi all. I am making a game like minecraft. I need to keep the world when the player exits the game. Chunk (it is a place 16 by 16 blocks) and world contain a lot datas, that don't serialize can. so i have created classes WorldData and ChunkData, that contain only serializable varibles. But i...
  5. A

    Serialize a property using System.ComponentModel.DefaultValueAttribute

    Hello, I try to serialize a n object to xml file.this object containt a property length [System.Xml.Serialization.XmlAttributeAttribute()] [System.ComponentModel.DefaultValueAttribute(1D)] public double Length { get { return...
  6. A

    Extract parent element from XML document

    Hello, I have an xml document <Person Attribute1="Name" Attribute2="LastName" Attribute3="Age" Attribute4="Price"> <Person1 Attribute1Person1="NamePerson" Attribute2Person1="LastNamePerson" /> <Person2 Attribute1Person2="NamePerson" Attribute2Person2="LastNamePerson" /> <Person3...
  7. R

    Question save xml string passed as string to webservice method in a file

    I want to create a web service method which will taken xml string as input parameter and when I run the webservice I pass the xml string . The webmethod should store the xml string in a file. How can I do in C# using visual studio. please help for example when I run the below code it works as I...
  8. flashkid10

    Extracting a byte[] from XML File

    I currently have a system in a which I store an image to a byte[] (cover) in a class instance. I'm trying to extract a byte[] from the class instance, but I don't know how to do that. the code I'm using is List<Item> information; information = (from e in...
  9. M

    How do I get the home phone type from xml doc?

    My C# code is returning the first phone number in the xml document regardless of its type. But the requirement is that my C# code should return only one phone number based on type found in xml document in a certain order. There are 4 types of phone numbers as you will see in the xml document...
  10. N

    Maptionary: A library for parsing YAML/XML/JSON

    Hello! I made a thing, and would very much like input / critiques / comments from folks, if you're interested. It's a library for parsing JSON/YAML/XML into a very free-form and forgiving data structure (that resembles hashes in Ruby/JS/Python). You can find it here...
  11. S

    Question Can not deserialize a file

    Hey everyone, in my project I deserialize an xml file in order to load the info to the class and it all went good ..before I added Farseer Physics. Now it just won't load and says "An exception of type 'System.InvalidOperationException' occurred in System.Xml.dll but was not handled in user...
  12. C

    Create repeating elements in xml document from datatable

    Hi all, I am creating an XML document from a schema. I used xsd.exe to create a class file from the xsd. I have a datatable that I am using to write the xml with. Below is a sample with only first name and surname. As expected though, 5 nodes are created, the problem is that it only writes...
  13. E

    Question Read XML through Linq

    Hi All I am new to c# and linq. Could you please help me to parse the below xml through linq. <?xml version="1.0" encoding="UTF-8"?> <Dictionary> <GrType Name="Lion"> <Item> <ID> 1 </ID> <Color1> "T1" </Color1> <Color2> "T2" </Color2> <Color3> "T3" </Color3> <Color4>...
  14. jcdb

    HTTP Error 500.19 - Internal Server Error

    Problem deploying to my company's domain - "buildproviders" I encounter a problem copying all of my files (WebApplication) into my company's domain name using FileZilla. When I test my company's domain address, it says "The element 'buildProviders' cannot be defined below the application...
Back
Top Bottom