-
Notifications
You must be signed in to change notification settings - Fork 14
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
make xml reader and writer extensible #38
Labels
enhancement
New feature or request
Comments
tomjnixon
added a commit
that referenced
this issue
Jun 30, 2023
now, the building of ElementParser structures is mostly contained in the MainElementHandler class; things like different versions can be supported through different instances of this, and the behaviour for individual elements can be overridden by sub-classing this and passing instances to the parsing/formatting functions closes #38 this is option 2, which wasn't the plan, but that didn't consider needing different behaviours for different versions
tomjnixon
added a commit
that referenced
this issue
Oct 3, 2023
now, the building of ElementParser structures is mostly contained in the MainElementHandler class; things like different versions can be supported through different instances of this, and the behaviour for individual elements can be overridden by sub-classing this and passing instances to the parsing/formatting functions closes #38 this is option 2, which wasn't the plan, but that didn't consider needing different behaviours for different versions
tomjnixon
added a commit
that referenced
this issue
Nov 7, 2023
now, the building of ElementParser structures is mostly contained in the MainElementHandler class; things like different versions can be supported through different instances of this, and the behaviour for individual elements can be overridden by sub-classing this and passing instances to the parsing/formatting functions closes #38 this is option 2, which wasn't the plan, but that didn't consider needing different behaviours for different versions
tomjnixon
added a commit
that referenced
this issue
Nov 7, 2023
now, the building of ElementParser structures is mostly contained in the MainElementHandler class; things like different versions can be supported through different instances of this, and the behaviour for individual elements can be overridden by sub-classing this and passing instances to the parsing/formatting functions closes #38 this is option 2, which wasn't the plan, but that didn't consider needing different behaviours for different versions
tomjnixon
added a commit
that referenced
this issue
Nov 16, 2023
now, the building of ElementParser structures is mostly contained in the MainElementHandler class; things like different versions can be supported through different instances of this, and the behaviour for individual elements can be overridden by sub-classing this and passing instances to the parsing/formatting functions closes #38 this is option 2, which wasn't the plan, but that didn't consider needing different behaviours for different versions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use cases:
Implementation ideas:
xml
attributes, and use it to (optionally) store a reference to the corresponding XML elements when parsing or generating XML{id(adm_element): xml_element}
{id(adm_element): (adm_element, xml_element)}
{IDCompare(adm_element): xml_element}
whereIDCompare
is a class that makes an object hashable and comparable by identityWeakKeyDictionary
work with non-hashable types. It's not clear if weak references are really neededAfter writing this I think 3 is the way to go.
The text was updated successfully, but these errors were encountered: