Stefan Tilkov's Random Stuff

Java Objects and XML

I’m awfully late to follow up on Ted Neward’s latest post in the monster permathread, but this piece from Norman Walsh gives me a nice excuse.

I think it’s fairly typical that people believe that working with strongly typed objects is the only sensible way that anyone would ever want to use for working with XML, much as Ted seems to think. But Norman’s post, as well as some older ones I commented on before, highlight that this is not necessarily the case.

I recently got to know a scenario where the backend legacy system had an (unRESTful) XML API. This was accessed from a Java/J2EE app that essentially turned the XML from the backend into Java objects and then turned those into HTML. I can’t help but feel that something is seriously wrong in a scenario like that …

Comments