XmlSchemaClassGenerator icon indicating copy to clipboard operation
XmlSchemaClassGenerator copied to clipboard

request:generate EXI data.

Open snikeguo opened this issue 1 year ago • 3 comments

class student
{
 ....
public byte[] ToExiData()
{
...
}
public static student FromExi(byte[] exiData)
{
...
}
}

EXI SPEC: https://www.w3.org/XML/EXI/docs/format/exi.html

snikeguo avatar Dec 18 '24 17:12 snikeguo

Can you elaborate on the feature request?

mganss avatar Dec 19 '24 11:12 mganss

EXI is a very compact representation for the Extensible Markup Language (XML) Information Set that is intended to simultaneously optimize performance and the utilization of computational resources. So we need an interface that:

Converts Data to Object: FromExiData(...) // Deserialization Converts Object to Data: ToExiData() // Serialization

//sender: var student=new student(); student.City="XXX"; var bytes=student.ToExiData(); TcpSend(bytes);

//receiver: var student=Student.FromExiData(recBytes); Console.WriteLine("city:{student.City}");

snikeguo avatar Dec 21 '24 07:12 snikeguo

This seems to be a very complex format. Do you suggest to implement it from scratch inside XmlSchemaClassGenerator?

In that case I'd say it's outside of the scope of this library which is only intended to generate classes that work with XmlSerializer.

OTOH if there exist third party libraries that you can suggest, then I'd be up for adding support to interface with them.

mganss avatar Dec 21 '24 12:12 mganss