Replies: 1 comment
-
I'm also looking for ways to ensure that the xsd namespace always appears only in the root node and not on and sub-nodes, but that's a very different question |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to figure out to put a little intelligence in my models so that the impedance mismatch between the xml and our internal classes is lessened.
Here is an example greatly simplified XSD
If we pretend for a second to have a class that stores things in days instead
I was hoping to put a shim in between the two objects so I could step between the two more cleanly
The Converter infrastructure appears to be for DATA rather than attributes.
I think my worst case is having to do something like
But, I'm hoping I can declare a type-mapping or converter or... so that I tell xsdata "when you see MyClass", always render that as TimeDelta. parsing is much less important, but still a consideration.
Thanks for your time.
Beta Was this translation helpful? Give feedback.
All reactions