|
|
|
|
I’ve got a confession to make. My current client is a Java shop, not a .Net shop. Now, I’m “only” doing XML work here, so I don’t really have to do much Java coding, but knowing how the platform works is very important to creating an easy to use XML architecture. One of the first gotchas I ran across is the poor support for XML serialization in the Java framework. It isn’t nearly as advanced as the .Net framework when it comes to XML serialization, and attribute based programming. To fill this niche, there are a bunch of open source libraries out there. I’ve looked at a bunch of them, but since most of the Java coders out there haven’t taken a look at the .Net framework, they haven’t taken the time to learn how .Net does it, and adapt it (and/or improve it) for Java. The closest library I’ve come across to the .Net style of XML serialization is XStream (thanks to this Xml.com article). It does use reflection to help serialize the Java Objects (like in .Net), but the major thing it is lacking is the ability to control the serialization thru attributes (which .Net does do). Instead, you have to add this information to your procedural code as settings via the alias method.
Now if I can only get an open source project going to implement an XPathNavigator-like library on the Java framework, maybe we can get some synergy between the Java and .Net XML developers.
|
|
|
|
|
Anonymous comments are disabled
About donxml
I’m an independent consultant, specializing in .Net solutions architecture, based out of New Jersey who also doubles as an evangelist for XML, Domain Driven Design, enterprise architecture and .Net. I do not work for Microsoft, the W3C or any other big company that you may know of (at least not yet). I’ve been an indie for over ten years, and although I’ve been tempted a couple times to take a job with companies like Microsoft, I’ve haven’t found something better than my current situation. I work mostly with the large pharmaceuticals that are based here in New Jersey, and usually find myself on long term contracts. Definitely not the prototypical indie consultant, but it lets me dedicate time to my non-income generating activities like the developer community stuff, plus financing open source projects like XPathmania and MVP-XML. If you would like to talk to me about doing some contract work, just contact me via the contact page. My rates vary widely, depending on lots of different variables, but mostly distance from Jersey, and type of work. Plus, I’ve been known to donate some of my code for various projects.