[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Omaha.pm] database -> XML



Several years ago, elements were better.

Elements would render better using css as compared to attributes.

Validation Schema or DTDs would have an easier time making sure a
given XML document conformed when it made heavy use of elements, but
had much more difficulty with attributes.

Is that still the case?

On 4/22/07, George Neill <georgen@neillnet.com> wrote:
Hi j,

   I am curious as to why you chose to use xml attributes over elements?

i.e.

      <loss cas="N" doa="20070523" exprrev="338.00" gcnt="2" los="2"
rt="DELUXE" seg="07" src="TUSNTL-PH" time="20070420111725" type="RR"/>

vs.

   <loss>
     <cas>N</cas>
     <doa>20070523</doa>
     <exprrev>338.00</exprrev>
     <gcnt>2</gcnt>
     <los>2</los>
     <rt>DELUXE</rt>
     <seg>07</seg>
     <src>TUSNTL-PH</src>
     <time>20070420111725</time>
     <type>RR</type>
   </loss>


Later,
George.

_______________________________________________
Omaha-pm mailing list
Omaha-pm@pm.org
http://mail.pm.org/mailman/listinfo/omaha-pm