On Tue, Mar 8, 2011 at 11:13 AM, phil swenson <[email protected]>wrote:
> I don't think we are not talking about shortcomings of XML. I think we are > talking about *misuses* of XML. XML was never intended to be a scripting > language (ant) Exactly. Here is what you should *not* do in XML: - Trying to pinpoint Java elements. For example, any occurrence of a method, class, or package name in an XML file is a bad sign. You should be using annotations for that. - Trying to code in XML. For example, needing a variable, an 'if', a loop or needing inheritance. Sadly, we don't really have a good solution to this problem just yet. What belongs in XML (or more broadly, a non-Java file): - Any information that doesn't belong to a Java element, or an information that transcends code. For example, port numbers, host names, transaction information, URL's, user names, etc... -- Cédric -- You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/javaposse?hl=en.
