Questions tagged [ixmlserializable]

Provides custom formatting for XML serialization and deserialization.

IXmlSerializable Interface on MSDN

115 questions
0
votes
1 answer

Using LINQ to XML to implement IXmlSerializable

I feel like this is probably a duplicate, but I can't find the exact answer I'm looking for. I am implementing IXmlSerializable on an object and want to know if it would be acceptable to use linq-to-xml. Replace this... public void…
0
votes
1 answer

IXmlSerializable with valid XmlSchema (XMLSchema:schema' element is not declared..)

I am trying to implement IXmlSerializable. My class implements serializable and writes a single string. I wish to be able to export an object graph schema using XsdDataContractExporter (the standard one). The class serializes to a simple xml.
Craig
  • 83
  • 1
  • 6
0
votes
1 answer

haveing separate XmlSerializer function

I want to create common function to xml serialization but there is a problem need to typeof object that to be serialise but I don't know the type of object it can be (persondetails or logindetails) anything i reffered this example and trying to…
aas
  • 197
  • 4
  • 17
0
votes
1 answer

XML Serialisation of Lists

I have xml in the format of
Luke Turner
  • 324
  • 1
  • 4
  • 22
0
votes
1 answer

Serializable class that contains IXmlSerializable property fails to deserialize?

Is it allowable to transition from [Serializable] attribute classes to IXmlSerializable classes and back? The following code serializes as expected, but it does not deserialize the second property of A (it always returns null). Thanks! using…
0
votes
1 answer

XML child element deserialize throws InvalidOperationException

I'm trying to manually deserialize a hierarchy of data objects (full code down below), but getting an exception I do not understand. DEMDataSet contains a collection of DemographicReportGroup objects. DemographicReportGroup implements…
dythim
  • 920
  • 7
  • 24
0
votes
2 answers

Get Attribute values and map this values together using SAX parser

here i want to get parse Map values in one array list or hash-map i dnt know which is the better way. Here is my XMl file I am using SAX parser to parse this thing
sam_k
  • 5,983
  • 14
  • 76
  • 110
0
votes
0 answers

How to serialize in a XML a custom IEnumerable?

I've created a class which derives from IEnumerable. T is a OQTemplate, and this one implements IXmlSerializable correctly. But I don't know how to implement the following class. public class OQTemplateCollection : IEnumerable,…
Darf Zon
  • 6,268
  • 20
  • 90
  • 149
0
votes
1 answer

IXmlSerializable doesn't get deserialized when used in class

[XmlRoot("company"), DataContract(Name = "company")] public class Company : IProvideSerialization { /// /// Stock exchange the company is in. /// ///
NKCSS
  • 2,716
  • 1
  • 22
  • 38
0
votes
1 answer

Using IXmlSerialization, how can I serialize a T property?

My question is so simple. Imagine we have a Foo class. and has a T property. public class Foo { public T Property { get; set; } } I want to implement in it IXmlSerializable and my problem is I have no idea to imitate the standard…
Darf Zon
  • 6,268
  • 20
  • 90
  • 149
1 2 3 4 5 6 7
8