Thursday, July 12, 2012

How not to do XML

This is some sample XML I get from a customers Web service. In my opinion this is a prime example on how not to represent data using XML.

  <ImplementorList>
               <Implementor xsi:nil="true">
                  <ArrayOfImplementorItem>
                     <OID xsi:nil="true"/>
                     <Name xsi:nil="true"/>
                     <Email xsi:nil="true"/>
                  </ArrayOfImplementorItem>
               </Implementor>
               <OID>
                  281527649831711
                  <Implementor>
                     <ArrayOfImplementorItem>
                        <OID xsi:nil="true"/>
                        <Name xsi:nil="true"/>
                        <Email xsi:nil="true"/>
                     </ArrayOfImplementorItem>
                  </Implementor>
               </OID>

No comments:

Followers