Phase 6 (final): data binding + JSON - #6
Merged
Merged
Conversation
Data_Binding_JSON/: FundsXML<->JSON converter (Python, stdlib+lxml) with to-json/from-json/roundtrip; from-json emits XSD-valid FundsXML, round-trip preserves NAV/position-count/percentage (verified). NativeBinding.java binds FundsXML to Java records via DOM/XPath, NO JAXB (verified on 4.2.9 and 4.0.0). README documents the generated-binding alternatives (JAXB xjc, xsdata, xsd.exe) against the official fetched schema. CI gains a JSON round-trip (XSD-validated, figures asserted) + native Java binding step (verified locally). Top-level index updated — roadmap complete. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Final phase of the enterprise FundsXML showcase. Branches off Phase 5;
mainalready has Phases 1–5, so the diff is Phase 6 only.Added —
Data_Binding_JSON/python/fundsxml_json.py— FundsXML ⇄ JSON (to-json/from-json/roundtrip, stdlib + lxml). Stable JSON shape;from-jsonemits XSD-valid FundsXML 4.2.9. Verified: NAV / position count / percentage-sum preserved through XML → JSON → XML.java/NativeBinding.java— native Java binding via DOM + XPath intorecords, no JAXB. Verified on 4.2.9 and 4.0.0 (one binding spans versions — FundsXML 4.x is backward compatible).xjc,xsdata,xsd.exe) against the official fetched schema, with the trade-offs.CI gains a JSON round-trip (XSD-validated, figures asserted) + native Java binding step (verified locally). Top-level index → ✅.
This completes the 6-phase roadmap. With Phases 1–5 already on
main, merging this makes the enterprise FundsXML showcase feature-complete: multi-version samples, XSD validation, Schematron, XSLT (DQ/factsheet/CSV), XQuery, XML signature, DB integration, large-file/streaming, and data binding/JSON — each across the common enterprise stacks, all wired into CI.🤖 Generated with Claude Code