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

XML export / import #32

Open
llogiq opened this issue Jul 6, 2021 · 3 comments
Open

XML export / import #32

llogiq opened this issue Jul 6, 2021 · 3 comments
Labels
help wanted Extra attention is needed integration A change which affects or introduces an integration

Comments

@llogiq
Copy link
Contributor

llogiq commented Jul 6, 2021

Required Functionality
A new export strategy and import to and from XML files.

Proposed Solution
Exporting to a simple XML file with the namespaces and fields as entities containing the values as text. XSLT can then be used to mangle that to the desired format as a first 80% solution.

Use case
Some people are still working with XML based tools. An export would make it easier for them to work with synth.

@christos-h christos-h added help wanted Extra attention is needed integration A change which affects or introduces an integration labels Jul 9, 2021
@MarcAntoine-Arnaud
Copy link

I have wrote the yaserde librairie, I think it can be very useful to support that feature !

@christos-h
Copy link
Member

@MarcAntoine-Arnaud - could you point me in the right direction here?

The part I'm not sure how to think about is how we would map fields in synth to attributes in XML.

@MarcAntoine-Arnaud
Copy link

Hello,

As you can see here: https://github.com/media-io/yaserde/blob/master/examples/src/bbigras_namespace.rs
You can manage attribute at import/export.
It supports also namespaces and all features of XML. All think that Serde don't wanna to support as it's too specific to XML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed integration A change which affects or introduces an integration
Projects
None yet
Development

No branches or pull requests

3 participants