Skip to content

Phase 6 (final): data binding + JSON - #6

Merged
karlkauc merged 1 commit into
mainfrom
feature/enterprise-showcase-phase6
May 15, 2026
Merged

karlkauc merged 1 commit into
mainfrom
feature/enterprise-showcase-phase6

Conversation

@karlkauc

Copy link
Copy Markdown
Contributor

Final phase of the enterprise FundsXML showcase. Branches off Phase 5; main already 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-json emits 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 into records, no JAXB. Verified on 4.2.9 and 4.0.0 (one binding spans versions — FundsXML 4.x is backward compatible).
  • README documents the generated-binding alternatives (JAXB 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

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>
@karlkauc
karlkauc merged commit 601bd4f into main May 15, 2026
2 checks passed
@karlkauc
karlkauc deleted the feature/enterprise-showcase-phase6 branch May 15, 2026 18:13
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

Successfully merging this pull request may close these issues.

1 participant