You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Brill Pappin <br...@jmonkey.com> on 2000/02/15 13:26:00 UTC

XML File format

Quick question:
Why was the XML file set up the way it was?

I mean, why use this format:
<init-param>
              <param-name>file</param-name>
              <param-value>/usr/local/etc/jsp/jsp.properties</param-value>
</init-param>

rather than this format?:
<init-param name="file" value="/usr/local/etc/jsp/jsp.properties"/>

The second seems much cleaner to me... and is clearer to read when perusing
the file.


- Brill Pappin
  www.jmonkey.com


Re: XML File format

Posted by Laird Nelson <lj...@unix.amherst.edu>.
Brill Pappin wrote:
> I mean, why use this format:
> <init-param>
>               <param-name>file</param-name>
>               <param-value>/usr/local/etc/jsp/jsp.properties</param-value>
> </init-param>
> 
> rather than this format?:
> <init-param name="file" value="/usr/local/etc/jsp/jsp.properties"/>

The second does not permit multiple param-values, for one.

Cheers,
Laird