Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
35 views

I am working with XML serialization in C# where I have multiple versions of a message class that inherit from each other. Here’s a simplified version of my code: namespace XMLSerializeProblem.Base { ...
Yash2304's user avatar
1 vote
1 answer
49 views

I need to generate some .xml given an example file. I notice that some of the nodes break convention and are camelCase instead of PascalCase. I'd like my code models to keep good conventions, but ...
eriyg's user avatar
  • 162
0 votes
2 answers
47 views

I am trying to generate this Soap XML: <soapenv:Envelope xmlns:bsvc="urn:com.workday/bsvc" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0....
Rita's user avatar
  • 11
0 votes
2 answers
65 views

I have some derived classes to serialize to XML: public void Main() { LevelCollection collection = new LevelCollection(); collection.Add(new SubLevel1("aaa")); ...
Radek S's user avatar
0 votes
3 answers
120 views

I am working on a deserializer in C# for an XML file type for a program I don't have any control over. Unfortunately, the XML file structure completely breaks conventions in two major ways, as far as ...
Groove Wizard's user avatar
0 votes
0 answers
166 views

I am calling the following constructor: var serializer = new XmlSerializer(typeof(List<Slot>)); and end up with this exception in the log : Unable to resolve assembly System.Private.CoreLib....
Cervelle's user avatar
1 vote
1 answer
74 views

I'm using C++ boost::serialization library to read and write configuration XMLs. To provide backward compatibility to the user, while reading an XML if some XML elements are absent, it needs to have ...
Rishad C's user avatar
0 votes
1 answer
156 views

This is my class: [XmlRoot(ElementName = "Package")] public class Package<T>: MyBase { public Messages<T> Messages { get { return _messages; } set { ...
Lucy82's user avatar
  • 693
0 votes
1 answer
94 views

I am using boost ( 1.69.0 ) serialization to generate an XML template file. The result I want to achieve is unfortunately bad. This is example code: struct A { struct B { int bInt; ...
Zozus's user avatar
  • 11
0 votes
1 answer
46 views

In case my xml file has the non-pretty format: <ArrayOfColumn><Column><COLUMN_NAME>SomeName1</COLUMN_NAME></Column><Column><COLUMN_NAME>SomeName2</...
Shahar Shokrani's user avatar
0 votes
1 answer
60 views

In the process of serializing to XML file, I'm encountering an infinite loop issue. I'm using java.beans, and through XMLEncoder, I'm attempting to serialize three classes: Category, Contact, and ...
KopyKay's user avatar
  • 31
0 votes
1 answer
104 views

Experienced with PowerShell, but new to C#. I am creating a Binary PowerShell Cmdlet and have run into an issue when trying to serialize PSCredential to XML with the XmlSerializer. When I serialize ...
Qrm's user avatar
  • 13
1 vote
2 answers
310 views

Im trying to Deserialize a XML im getting from a service. But the XmlSerializer failes when encountering the first attribute. My shortened xml looks like this: <?xml version="1.0" ...
merger's user avatar
  • 734
2 votes
1 answer
206 views

So I'm building a simulated file-system in C++ to study the language better and maybe some system level programming. Im using Boost::Serialization to save the state of the file system when the user ...
Panagiotis Foliadis's user avatar
-1 votes
1 answer
73 views

<n-hierarchy> <n name="ABC" n_id="971" /> <n name="XYZ" n_id="972"> <n name="jkl" n_id="973"> ...
VInayK's user avatar
  • 1,559
0 votes
0 answers
71 views

I am migrating a WCF client application from DotNet Framework to DotNet (Core) 7. The object I am using serializes using ASCII character 0x07 as a separator, which under DotNet Framework would be ...
Andy W's user avatar
  • 229
0 votes
2 answers
100 views

I know how to serialize a "Date" to / from XML using C#: [XmlElement(DataType ="date")] public DateTime LastInvited { get => _LastInvited; set => _LastInvited = value; } ...
Andrew Truckle's user avatar
0 votes
1 answer
602 views

How to make the example working in Swagger while still having [Produces("application/json", "application/xml")] definition in controller method. In .Net Core 6 API, have set up ...
Beli's user avatar
  • 3
0 votes
0 answers
25 views

I have a problem with serialization c# in .net public class User { public int Id { get; set; } public string Name { get; set; } public string Email { get; set; } } Is possible to control ...
Radamanthys's user avatar
1 vote
1 answer
93 views

I'm supporting a legacy, internal API that uses two classes that are serialized using XML. Both classes are sub-classes of a common base class: namespace My.Namespace { [ Serializable, ...
FunctionalFolds's user avatar
0 votes
0 answers
223 views

I need to be able to save a delegate with the information of which function it is connected to. Something like this: In C#: public class Skill { [XmlAttribute("SkillFunction")] ...
user avatar
1 vote
0 answers
41 views

I have a pretty simple console application. Ignoring missing checks, the program is as follows: using System.Drawing; using System.Xml; using System.Xml.Schema; using System.Xml.Serialization; ...
Doshorte  Dovencio's user avatar
-1 votes
1 answer
368 views

I want to deserialize this kind of XML-files that have SOAP-envelope and invalid .xsd address in the header that doesn't exist anymore (finvoiceack.xsd). Would like to get the nodes to dataset or into ...
Janizei's user avatar
1 vote
1 answer
1k views

I'm trying to deserialize an xml response I get from a call. I've used Visual Studios "Paste Special" function to prepare my program for how the file is gonna look, and the only change I've ...
Kiesp's user avatar
  • 76
-2 votes
1 answer
789 views

Passing the root to the xsd.exe, successfully generates the Classes with the proper structure according to the XSD, we can now assign values to the objects of those classes and populate them, the ...
Ariox66's user avatar
  • 670

1
2 3 4 5
94