Closed Therzok closed 6 years ago
https://github.com/stsundermann/gi-sharp/tree/master/generator/Gir
This repository has deserialization of gir files which I implemented from my gir schema file. It's complete and can provide information on which elements have which attributes and child elements.
@stsundermann That could work!
I can upload the schema file as well if needed.
Closing in favor of github.com/mono/gir-sharp
What about using serialization instead of manual XML parsing? I could think of replacing the current .metadata patching process with something like a generator plugin system. If a binding needs to change the .gir file before it's processed it can provide a plugin to the generator which can then also adjust the XML document after deserialization. Sometimes it's really hard to deal with XPath expressions during metadata patching. A full C# solution would be much handier.