- Jan 6, 2001
- 2,041
- 0
- 0
Originally posted by: kamper
html, for example is really just a form of xml.
Originally posted by: notfred
Originally posted by: kamper
html, for example is really just a form of xml.
No it's not.
Originally posted by: notfred
Originally posted by: kamper
html, for example is really just a form of xml.
No it's not.
Originally posted by: kamper
You don't really use xml for an operating system which I guess is what n0c was explaining. You use xml for much higher level things like passing structured information between completely different systems. html, for example is really just a form of xml.
Originally posted by: n0cmonkey
Originally posted by: kamper
You don't really use xml for an operating system which I guess is what n0c was explaining. You use xml for much higher level things like passing structured information between completely different systems. html, for example is really just a form of xml.
I meant that plain text just makes more sense for plenty of things. People/companies try and XMLize everything. There have been requests to make logs into XML documents, and Macromedia used XML config files for Coldfusion MX. These are just the wrong place for it, IMO.
Originally posted by: kamper
Originally posted by: n0cmonkey
Originally posted by: kamper
You don't really use xml for an operating system which I guess is what n0c was explaining. You use xml for much higher level things like passing structured information between completely different systems. html, for example is really just a form of xml.
I meant that plain text just makes more sense for plenty of things. People/companies try and XMLize everything. There have been requests to make logs into XML documents, and Macromedia used XML config files for Coldfusion MX. These are just the wrong place for it, IMO.
I agree that log files are a bad place for xml because of the bloat but I think config files are a great place for it. From the developers perspective it makes things simple because you just define a document structure and any old xml library will make extracting the required info very easy. It saves you from defining a new syntax, writing a parser for it, and then expecting the user to understand the new syntax.
If there's an xml based document of some kind (config files being one example, things like build scripts are another) I can read the xsd and understand most of what I am supposed to be able to specify fairly quickly. That's better than some free-form format where I have to rely on the developers willingness and ability to document. In that case the code is usually well ahead of the documentation and it takes too long to get up to speed on how to configure things.
Originally posted by: n0cmonkey
Originally posted by: kamper
Originally posted by: n0cmonkey
Originally posted by: kamper
You don't really use xml for an operating system which I guess is what n0c was explaining. You use xml for much higher level things like passing structured information between completely different systems. html, for example is really just a form of xml.
I meant that plain text just makes more sense for plenty of things. People/companies try and XMLize everything. There have been requests to make logs into XML documents, and Macromedia used XML config files for Coldfusion MX. These are just the wrong place for it, IMO.
I agree that log files are a bad place for xml because of the bloat but I think config files are a great place for it. From the developers perspective it makes things simple because you just define a document structure and any old xml library will make extracting the required info very easy. It saves you from defining a new syntax, writing a parser for it, and then expecting the user to understand the new syntax.
If there's an xml based document of some kind (config files being one example, things like build scripts are another) I can read the xsd and understand most of what I am supposed to be able to specify fairly quickly. That's better than some free-form format where I have to rely on the developers willingness and ability to document. In that case the code is usually well ahead of the documentation and it takes too long to get up to speed on how to configure things.
Documentation will still be key. How many COMPLICATED (I'm stressing that word for a reason) XML config files have you delt with? Take a peek at Coldfusion MX's config file, and tell me how easy it would be to mess with it assuming no knowledge of XML.
Originally posted by: kamper
I've never seen a coldfusion config file but I've deal with very large ant build scripts, jboss config files, log4j config files and the like; most of them with next to no documentation. I find that the xml syntax helps a great deal in clarifying the scope and purpose of each item that I am configuring. Got a large coldfusion file handy? Show it to me.
Granted, if you have no prior understanding of xml it wouldn't be easy but my point is that once you understand the syntax and the structural implications (and really, most computer geeks should) any xml config file becomes easily accessible as opposed to a free form file which may have different idioms depending on the developers whim and lacks the implicit expressive power of xml. You may very well have to learn a new syntax for each config file.
But, at any rate, I suppose it also depends on the backgrounds of your user. I come from a web services java world where xml is absolutely huge so it makes sense to use it. I would understand that for other applications it may not be as effective, like for ssh and stuff that drag mentions.
<-- shakes head
"I don't understand why you unix folks always seem to want to do things the hard way"![]()
Originally posted by: n0cmonkey
Here is one of the config files for CF MX.
Originally posted by: n0cmonkey
If config files started switching to XML I'd consider spending the time (what appears to be years by the looks of things) to learn XML, but it shouldn't be necessary for someone that just wants to setup a system.
Originally posted by: n0cmonkey
Originally posted by: kamper
Originally posted by: n0cmonkey
Originally posted by: kamper
You don't really use xml for an operating system which I guess is what n0c was explaining. You use xml for much higher level things like passing structured information between completely different systems. html, for example is really just a form of xml.
I meant that plain text just makes more sense for plenty of things. People/companies try and XMLize everything. There have been requests to make logs into XML documents, and Macromedia used XML config files for Coldfusion MX. These are just the wrong place for it, IMO.
I agree that log files are a bad place for xml because of the bloat but I think config files are a great place for it. From the developers perspective it makes things simple because you just define a document structure and any old xml library will make extracting the required info very easy. It saves you from defining a new syntax, writing a parser for it, and then expecting the user to understand the new syntax.
If there's an xml based document of some kind (config files being one example, things like build scripts are another) I can read the xsd and understand most of what I am supposed to be able to specify fairly quickly. That's better than some free-form format where I have to rely on the developers willingness and ability to document. In that case the code is usually well ahead of the documentation and it takes too long to get up to speed on how to configure things.
Documentation will still be key. How many COMPLICATED (I'm stressing that word for a reason) XML config files have you delt with? Take a peek at Coldfusion MX's config file, and tell me how easy it would be to mess with it assuming no knowledge of XML.
Originally posted by: kamper
Originally posted by: n0cmonkey
Here is one of the config files for CF MX.
Heh. Not to belittle you but that is trivial. It's not even coldfusion, it's the generic web app config file that must be handled by any servlet/jsp container. Interestingly enough, config files like that are frequently generated automatically out of meaningful comments embedding in application code (good use of xml) by tools like xdoclet. Maybe not web.xml but larger, more complicated ones like ejb descriptors.
Originally posted by: n0cmonkey
If config files started switching to XML I'd consider spending the time (what appears to be years by the looks of things) to learn XML, but it shouldn't be necessary for someone that just wants to setup a system.
You got some tags. The tags must close and be properly nested in a tree structure (that's the real kicker). Tags can have attributes. You place data in between tags, giving it meaning. There's a 5 second lesson that handles just about everything you need to know to read that config file; everything else is application specific (you'd have to figure it out no matter what syntax you're using). Oh, and <!-- --> denotes a comment.
Edit: I guess your concerns over the web.xml are justified. The content of that file should not have to be edited by an administrator, it deals largely with development issues. A properly packaged web application should come with the web.xml long since completed and all you should have to do is drop the war file into the proper place.
Originally posted by: n0cmonkey
That was just an example I had found. It doesn't look like hte one I had to edit before (just to fix CF MX). Compare a complex XML config file to Apache's config file, and you might see what I mean.![]()
Originally posted by: kamper
Originally posted by: n0cmonkey
That was just an example I had found. It doesn't look like hte one I had to edit before (just to fix CF MX). Compare a complex XML config file to Apache's config file, and you might see what I mean.![]()
You're not going to impress me by telling me that you've worked with more complex xml files and that apache's makes more sense to you. Here's a few config files that I've found on my hard drive. Most are simply the defaults that come with jboss and tomcat, anything used in a deployable application will get much bigger.
JBoss database configuration:
http://kamper.dyndns.org/xml/standardjbosscmp-jdbc.xml
That has no comments but I can still figure out what it's talking about.
Tomcat server configuration:
http://kamper.dyndns.org/xml/server.xml
Plenty of comments, making it fully editable by anyone who knows what they are configuring. Look at it in any browser and the syntactic structure becomes fairly clear.
A properly documented web.xml (same as what you posted before except that it's not for a specific application):
http://kamper.dyndns.org/xml/tomcat-web.xml
To me, the data presented in these files is organized in a much more coherent manner than httpd.conf and I would take the xml before the .conf anyday.
Edit: unfortunately, firefox butchers the comments in the 3rd file listed. It's easier to read in ie or any text editor with xml syntax highlighting
Originally posted by: kamper
Originally posted by: n0cmonkey
That was just an example I had found. It doesn't look like hte one I had to edit before (just to fix CF MX). Compare a complex XML config file to Apache's config file, and you might see what I mean.![]()
You're not going to impress me by telling me that you've worked with more complex xml files and that apache's makes more sense to you. Here's a few config files that I've found on my hard drive. Most are simply the defaults that come with jboss and tomcat, anything used in a deployable application will get much bigger.
JBoss database configuration:
http://kamper.dyndns.org/xml/standardjbosscmp-jdbc.xml
That has no comments but I can still figure out what it's talking about.
Tomcat server configuration:
http://kamper.dyndns.org/xml/server.xml
Plenty of comments, making it fully editable by anyone who knows what they are configuring. Look at it in any browser and the syntactic structure becomes fairly clear.
A properly documented web.xml (same as what you posted before except that it's not for a specific application):
http://kamper.dyndns.org/xml/tomcat-web.xml
To me, the data presented in these files is organized in a much more coherent manner than httpd.conf and I would take the xml before the .conf anyday.
Sorry, I'm getting a little snappy here. I guess my point is that xml still scales very well for those that understand it. You can use what you like and I'll use what I like and the world will be a happier place for it.![]()
Originally posted by: n0cmonkey
What does <alias-max-length>30</alias-max-length> mean? Off the top of your head.![]()
Originally posted by: kamper
Originally posted by: n0cmonkey
What does <alias-max-length>30</alias-max-length> mean? Off the top of your head.![]()
I'd have to see it in context (that's the whole point of xml). I'd also have to understand what I'm configuring, that's integral to any configuration file (and I'm no object-relational datamapping expert).
Originally posted by: BingBongWongFooey
xml isn't really meant for human viewing/editing. If the job requires either, then xml is probably a bad choice. Look how damn noisy that CFMX config file is! No sane person would want to type all that crap by hand.
(although it is tempting for programmers: parsers are such an annoyance to write)