James Watson
Posts: 2024
Nickname: watson
Registered: Sep, 2005
|
|
Re: Brett McLaughlin: What is XML Really Good For?
|
Posted: Mar 2, 2007 9:35 AM
|
|
> If you need to communicate with an existing component that > uses XML, then sure, that makes a great deal of sense at > that component boundary. I just don't think that reasons > beyond that one justify the use of XML.
I don't disagree but once people eat the XML elephant, they tend to not want to have to worry about something in addition to that. I'm not saying that is correct but it's what people do. > Specifically, I think XML falls short as a format for > configuration files, datastores/databases, and messages > between components over which you have control.
I think the main reason this has become standard is because the tools are there. Things like JavaCC are changing the equation but I still would like to see a SAX style parser for custom syntax. If you know of one, I would love to know about it. Maybe JavaCC does this but I find the documentation for JavaCC inscrutable, probably because I am not a top-down learner.
> And XML is a miserable choice for describing languages; to > compare two XML-related attempts, I find Relax NG much > more pleasant, and expressive, than XML Schema. XML Schema > is fairly rich, but ugly and verbose.
No argument there.
> > Saying > > that isn't a valid reason to use it makes no sense to > me. > > It's not the only reason to choose a language but it's > > s definitely an important one. > > I used the word "valid" incorrectly in my previous post - > I meant XML on its own is insufficient, because it's not a > language we use directly. It's a language syntax, one > component of a meta-language (and I'm probably being > sloppy here, but...). One still needs a schema or > ontology, and some description of semantics. Unless > there's an existing XML schema, and unless your partner is > wedded to parsing XML, you have a choice whether or not to > use XML. If you choose it, your recipient will still need > to implement the proper hooks for converting your XML into > their internal structures. Doing so with other syntaxes is > fairly easy, though far less frequently done.
I've actually seen a case where an existing syntax was parsed and with much effort converted to XML so that people could parse the XML to get the data in the first document. There's a mindlessness that has come about from the popularity of XML. I get where you are coming from.
The common perception is that XML is easier to integrate into code. I'm not sure this is the case. If you mean to fight the XML tide, you'd probably win more converts by showing that this is not the case. Without knowing the alternatives, people will not abandon XML. Some of this is just 'nobody gets fired for buying IBM' type logic. 'Nobody' gets fired for using XML.
A few posts back I posted an hypothetical syntax. It's not completely hypothetical. I've been thinking that simple tools should allow that syntax to be converted to XML in all cases. That would allow all the tools that exist around XML to be used and allow for communication with those that support XML without using XML. Do you feel this is still does not address the issues you have with XML?
> The tangential points I raised circle around the origin of > languages, and are important with regard to a future > beyond an immediate need to integrate with an existing XML > service. To rehash: the history of software demonstrates > that new, backward-incompatible languages can and do arise > despite history, which is much less weighty in software > than in human communications. So, by making choices and > developing new formats and languages, we can influence the > future of interoperability far more quickly and > effectively than we can influence the future of English.
Haven't you been impacted by leveraged mindshare?
I heard someone use the term 'plus-up' on the radio recently and couldn't stop thinking about "1984" for the rest of the week.
|
|