Questions tagged [yaxlib]

YAXLib is a flexible XML serialization library in the .NET Framework.

YAXLib is a flexible XML serialization library that lets developers design freely the XML file structure, choose among private and public fields to be serialized, and serialize all known collection classes and arrays (single-dimensional, multi-dimensional, and jagged arrays) in the .NET Framework.

YAXLib can be used as a powerful XML parser or generator, that exploits the object to XML mapping in the class definitions themselves.

The exception handling policies and its missing data recovery capabilities makes YAXLib a reliable tool for XML configuration storage and retrieval.

http://yaxlib.codeplex.com/

8 questions
1
vote
1 answer

XML to object using YAXLib library

there is an xml of the form below, tell me how to deserialize it to get an object. using the YAXLib library category 1 category 2
Evgeny
  • 11
  • 1
1
vote
1 answer

C# - YAXLib: How to ignore properties

I have to create XML document in the following format using YAXLib library 10 PA019 I have the following class structure…
Sanjeewa
  • 555
  • 1
  • 9
  • 22
1
vote
1 answer

C# - YAXLib: "No elements with this name found:"

I have two classes that are used for de/serializing an XML file. XmlExampleBasicUnit.cs: [YAXSerializeAs("Unit")] public class XmlExampleBasicUnit { [YAXSerializeAs("StringVar")] public String StringVar { get; set; } …
Pozzi Userpic
  • 347
  • 8
  • 30
1
vote
1 answer

YAXLib crash when serialize Dictionary with null values

I'm using YAXLib to serialize my objects, I find the following bug in the YAXLib source code: If I try to serialize a dictionary that contains a null value I got a unhandled nullReference exception. Dictionary Dict= new…
Rowandish
  • 2,655
  • 3
  • 31
  • 52
0
votes
1 answer

Possible to take Flat XML File and Make it into Complex Classes?

Say I have something like this Tove Jani Reminder Don't forget me this weekend! is it possible use the YAXLib to Deserialize it into something like this public class Note { …
chobo2
  • 83,322
  • 195
  • 530
  • 832
0
votes
1 answer

C# - YAXLib: Export data to XML file

I have two sample classes that are used for de/serializing an XML file in tests. XmlExampleBasicUnit.cs: [YAXSerializeAs("Unit")] public class XmlExampleBasicUnit { [YAXSerializeAs("StringVar")] public String StringVar { get; set; } …
Pozzi Userpic
  • 347
  • 8
  • 30
0
votes
1 answer

C# MissingMethodException: Constructor on type 'System.Int32' not found

I'm trying to use YAXLib to work with XML, but whenever I try to serialize a class with an int, double, or float field, I get a crash. YAXLib attempts to call DefaultValue = MemberType.InvokeMember(string.Empty, BindingFlags.CreateInstance, null,…
Jephron
  • 2,652
  • 1
  • 23
  • 34
0
votes
1 answer

How to serialize to XmlWriter using YAXLib

I'm trying to use YAXLib to serialize an object. If I serialize directly to a string it works fine, but if I try to serialize to an XmlWriter I get an empty xml. This is a sample class declaration (nothing weird, right?): public class City { …
mmutilva
  • 18,688
  • 22
  • 59
  • 82