The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

    • RT @bslagter: 19/ Mijn suggestie is om massaal asymmetrische maatregelen te omarmen, bedenken, ontwikkelen. Modieuze mondbedekking, slimme… 25 minutes ago
    • @dzjr74 Langs stompetoren. Jeugdsentimenten. 29 minutes ago
    • @Tijgernest @dzjr74 Hier al BBQ geur. Tenminste: iemand in de buurt probeert zo'n ding aan te krijgen. Meer stank dan warmte (: 30 minutes ago
    • RT @wimdaniels: Het wekelijkse zondagse taalspel gaat vandaag op herhaling met ‘afkappertjes’. Laat van een woord of woordgroep de laatste… 44 minutes ago
    • Ergens in de buurt probeert iemand een BBQ aan te steken. Meer stank dan warmte (: 45 minutes ago
  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,880 other followers

Not all XSD mappings to programming language constructs are possible

Posted by jpluimers on 2020/02/26

This post is a reminder to myself that not all mappings from XSD to programming languages are possible.

There are many impossible cases, so this is just a general reminder.

A Delphi specific case for instance is the mapping of enumerations: one reason is that XSD enumerations are case sensitive, but the Delphi language is not: [WayBackUsing XML Enumerations with Delphi XML Data Binding Wizard – Stack Overflow.

More generic examples from my answer to the above question:

  • In XSD you can derive from an existing type in two ways: extending it and limiting it. Object Oriented languages only allow you extend when deriving.
  • Delphi is not alone in these kinds of limitations. Generating wrappers from XSD schema’s is the field of specialized tools, even in the Java or .NET world.

I’ve seen horrible things with wildcards that are sort of mappable to Java, but not to C#. This could likely go on for much longer…

–jeroen

2 Responses to “Not all XSD mappings to programming language constructs are possible”

  1. thaddy said

    Actually, you are wrong here. You only demonstrate your futile – with respect, you know I respect you – efforts but not any proof that xsd can not describe any language (Karl Popper).
    That proof is rather easy: since you can have lowercase and uppercase you can describe any case, you just did not succeed in doing that. It is important to realize that.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

 
%d bloggers like this: