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

Support attributes and direct element content in Sassone.Builder/Sassone.XML.build #8

Open
2 of 4 tasks
lucacorti opened this issue Sep 24, 2024 · 0 comments
Open
2 of 4 tasks
Assignees
Labels
enhancement New feature or request

Comments

@lucacorti
Copy link
Contributor

lucacorti commented Sep 24, 2024

It is desirable to be able to honor attribute direct element content mapping in Sassone.Builder in XML.

e.g. when dealing with this legal XML representation:

<person gender="male">
  <name>Bob</name>
  <surname>Price</surname>
  Some other content.
</person>

Current status

  • Serialize attributes defined via @derive Sassone.Builder
  • Serialize direct element content via @derive Sassone.Builder (e.g. "Some other content." above)
  • Parse attributes defined via @derive Sassone.Builder to struct field (e.g. person element gender attribute above)
  • Parse direct element content via @derive Sassone.Builder to struct field (e.g. "Some other content". above)
@lucacorti lucacorti added the enhancement New feature or request label Sep 25, 2024
@lucacorti lucacorti self-assigned this Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant