Open martaver opened 5 years ago
Unfortunately, I noticed this severe limitation several months ago when looking for a data binding tool for TypeScript. I never did find a suitable one comparable to, say, Java JAXB. Also, I think this project has been abandoned. There was mention of a rewrite of cxml
but I never heard back about its status: https://github.com/charto/cxml/issues/15
Is there really no comprehensive xsd/xml parser/writer for typescript out there?
On Wed, 27 Nov 2019 at 12:14, Franklin Chen notifications@github.com wrote:
Unfortunately, I noticed this severe limitation several months ago when looking for a data binding tool for TypeScript. I never did find a suitable one comparable to, say, Java JAXB. Also, I think this project has been abandoned. There was mention of a rewrite of cxml but I never heard back about its status: charto/cxml#15 https://github.com/charto/cxml/issues/15
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/charto/cxsd/issues/29?email_source=notifications&email_token=ABOXAMTGLUGDVA4U46J576DQVXQZNA5CNFSM4JRZHH5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFIEPZA#issuecomment-558909412, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOXAMTVH6WTFQ3QWHWWI3LQVXQZNANCNFSM4JRZHH5A .
Trying to parse an XML file with a schema that contains a choice sequence:
The above generates the following in a type:
However, this structure loses the ordering of the elements. In my case, order is important because it contains site content.
I would have expected the following types, perhaps: