Skip to content

XML parser improvements #2

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

Open
4 tasks
Tracked by #6
rafern opened this issue Nov 19, 2023 · 0 comments
Open
4 tasks
Tracked by #6

XML parser improvements #2

rafern opened this issue Nov 19, 2023 · 0 comments

Comments

@rafern
Copy link
Owner

rafern commented Nov 19, 2023

  • Use warning/error system with XPaths to error sources in XML deserializer
  • Get rid of BaseXMLUIParser
  • Re-think value-passing
    • JSON values need to use quotes for keys, which is painful
    • Enums are non-existent. If you want centered body text, you have to pass 0.5 instead of TextAlignMode.Center, which is very confusing
    • Using a prefix in the value to represent how it should be parsed is stupid. Find a better alternative
    • There is no way to pass Infinity, which is a major pain when working with constraints
    • You should be able to mix variables and complex data structures. For example, passing a constraint with a maxWidth represented by a variable, like so: [0, maxWidth, 0, Infinity]
  • Make parser versioned so that it's compatible with older format versions
@rafern rafern mentioned this issue Nov 19, 2023
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant