Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

request:generate EXI data. #540

Open
snikeguo opened this issue Dec 18, 2024 · 3 comments
Open

request:generate EXI data. #540

snikeguo opened this issue Dec 18, 2024 · 3 comments

Comments

@snikeguo
Copy link

snikeguo commented Dec 18, 2024

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

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

@mganss
Copy link
Owner

mganss commented Dec 19, 2024

Can you elaborate on the feature request?

@snikeguo
Copy link
Author

snikeguo commented Dec 21, 2024

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}");

@mganss
Copy link
Owner

mganss commented Dec 21, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants