Login or Sign Up
Extensible Markup Language (XML) XML is often used to transfer data between clients in a format that can be read by each. XML is similar to HTML in structure, but it must be well-formed (all open tags must be closed in the reverse order they are created). XHTML is a more strict version of HTML that can be used for web page display. The Lifemapper website is written using XHTML. Example <?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="/css/services.xsl"?>
<lm:response xmlns:lm="http://lifemapper.org"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://lifemapper.org
                                 /schemas/serviceResponse.xsd">
   <lm:title>Lifemapper occurrence set 3610525</lm:title>
   <lm:user>lm2</lm:user>
   <lm:interfaces>
      <lm:atom>http://lifemapper.org/services/lm2/occurrences/3610525/atom</lm:atom>
      <lm:csv>http://lifemapper.org/services/lm2/occurrences/3610525/csv</lm:csv>
      <lm:json>http://lifemapper.org/services/lm2/occurrences/3610525/json</lm:json>
      <lm:kml>http://lifemapper.org/services/lm2/occurrences/3610525/kml</lm:kml>
      <lm:shapefile>http://lifemapper.org/services/lm2/occurrences/3610525/shapefile</lm:shapefile>
      <lm:xml>http://lifemapper.org/services/lm2/occurrences/3610525/xml</lm:xml>
   </lm:interfaces>
   <lm:occurrenceSet>
      <lm:bbox>
         (-180.0, -90.0, 180.0, 90.0)
      </lm:bbox>
      <lm:count>
         8
      </lm:count>
      <lm:displayName>
         Aaaba fossicollis
      </lm:displayName>
      <lm:fromGbif>
         True
      </lm:fromGbif>
      <lm:guid>
         http://lifemapper.org/ogc?map=data_3610525&layers=occ_3610525
      </lm:guid>
      <lm:layer>
         <lm:bbox>
            (-180.0, -90.0, 180.0, 90.0)
         </lm:bbox>
         <lm:dataQuery>
            SELECT * from lm_getMicroOccurrencesBySet(3610525)
         </lm:dataQuery>
         <lm:dataService>
            pbj
         </lm:dataService>
         <lm:dataType>
            10
         </lm:dataType>
         <lm:featureCount>
            8
         </lm:featureCount>
         <lm:guid>
            http://lifemapper.org/ogc?map=data_3610525&layers=occ_3610525
         </lm:guid>
         <lm:keywords>
         </lm:keywords>
         <lm:name>
            3610525
         </lm:name>
         <lm:epsgcode>
         </lm:epsgcode>
         <lm:title>
            Aaaba fossicollis
         </lm:title>
         <lm:units />
      </lm:layer>
      <lm:metadataUrl>
         http://lifemapper.org/services/lm2/occurrences/3610525
      </lm:metadataUrl>
      <lm:modTime>
         2009-04-23 17:06:53
      </lm:modTime>
      <lm:points>
         <lm:point>
            <lm:canonicalName>
               Aaaba fossicollis
            </lm:canonicalName>
            <lm:catalogNum>
               K.112081
            </lm:catalogNum>
            <lm:collectionCode>
               Entomology
            </lm:collectionCode>
            <lm:guid>
               http://data.gbif.org/ws/rest/occurrence/get/185465199
            </lm:guid>
            <lm:institutionCode>
               AM
            </lm:institutionCode>
            <lm:latitude>
               -34.0167
            </lm:latitude>
            <lm:localId>
               37624448
            </lm:localId>
            <lm:longitude>
               150.683
            </lm:longitude>
            <lm:providerName>
               OZCAM (Online Zoological Collections of Australian Museums) Provider
            </lm:providerName>
            <lm:resourceName>
               OZCAM (Online Zoological Collections of Australian Museums) Provider
            </lm:resourceName>
         </lm:point>
         <lm:point>
            <lm:canonicalName>
               Aaaba fossicollis
            </lm:canonicalName>
            <lm:catalogNum>
               K.112082
            </lm:catalogNum>
            <lm:collectionCode>
               Entomology
            </lm:collectionCode>
            <lm:collectionDate>
               1986-11-23 00:00:00
            </lm:collectionDate>
            <lm:guid>
               http://data.gbif.org/ws/rest/occurrence/get/185465200
            </lm:guid>
            <lm:institutionCode>
               AM
            </lm:institutionCode>
            <lm:latitude>
               -33.7667
            </lm:latitude>
            <lm:localId>
               37624449
            </lm:localId>
            <lm:longitude>
               150.917
            </lm:longitude>
            <lm:providerName>
               OZCAM (Online Zoological Collections of Australian Museums) Provider
            </lm:providerName>
            <lm:resourceName>
               OZCAM (Online Zoological Collections of Australian Museums) Provider
            </lm:resourceName>
         </lm:point>
         <lm:point>
            <lm:canonicalName>
               Aaaba fossicollis
            </lm:canonicalName>
            <lm:catalogNum>
               K.112083
            </lm:catalogNum>
            <lm:collectionCode>
               Entomology
            </lm:collectionCode>
            <lm:collectionDate>
               1986-11-23 00:00:00
            </lm:collectionDate>
            <lm:guid>
               http://data.gbif.org/ws/rest/occurrence/get/185465201
            </lm:guid>
            <lm:institutionCode>
               AM
            </lm:institutionCode>
            <lm:latitude>
               -33.7667
            </lm:latitude>
            <lm:localId>
               37624450
            </lm:localId>
            <lm:longitude>
               150.917
            </lm:longitude>
            <lm:providerName>
               OZCAM (Online Zoological Collections of Australian Museums) Provider
            </lm:providerName>
            <lm:resourceName>
               OZCAM (Online Zoological Collections of Australian Museums) Provider
            </lm:resourceName>
         </lm:point>
         <lm:point>
            <lm:canonicalName>
               Aaaba fossicollis
            </lm:canonicalName>
            <lm:catalogNum>
               K.112084
            </lm:catalogNum>
            <lm:collectionCode>
               Entomology
            </lm:collectionCode>
            <lm:collectionDate>
               1986-11-23 00:00:00
            </lm:collectionDate>
            <lm:guid>
               http://data.gbif.org/ws/rest/occurrence/get/185465202
            </lm:guid>
            <lm:institutionCode>
               AM
            </lm:institutionCode>
            <lm:latitude>
               -33.7667
            </lm:latitude>
            <lm:localId>
               37624451
            </lm:localId>
            <lm:longitude>
               150.917
            </lm:longitude>
            <lm:providerName>
               OZCAM (Online Zoological Collections of Australian Museums) Provider
            </lm:providerName>
            <lm:resourceName>
               OZCAM (Online Zoological Collections of Australian Museums) Provider
            </lm:resourceName>
         </lm:point>
         <lm:point>
            <lm:canonicalName>
               Aaaba fossicollis
            </lm:canonicalName>
            <lm:catalogNum>
               K.112085
            </lm:catalogNum>
            <lm:collectionCode>
               Entomology
            </lm:collectionCode>
            <lm:collectionDate>
               1986-10-25 00:00:00
            </lm:collectionDate>
            <lm:guid>
               http://data.gbif.org/ws/rest/occurrence/get/185465203
            </lm:guid>
            <lm:institutionCode>
               AM
            </lm:institutionCode>
            <lm:latitude>
               -33.8
            </lm:latitude>
            <lm:localId>
               37624452
            </lm:localId>
            <lm:longitude>
               150.85
            </lm:longitude>
            <lm:providerName>
               OZCAM (Online Zoological Collections of Australian Museums) Provider
            </lm:providerName>
            <lm:resourceName>
               OZCAM (Online Zoological Collections of Australian Museums) Provider
            </lm:resourceName>
         </lm:point>
         <lm:point>
            <lm:canonicalName>
               Aaaba fossicollis
            </lm:canonicalName>
            <lm:catalogNum>
               K.112086
            </lm:catalogNum>
            <lm:collectionCode>
               Entomology
            </lm:collectionCode>
            <lm:collectionDate>
               1986-12-07 00:00:00
            </lm:collectionDate>
            <lm:guid>
               http://data.gbif.org/ws/rest/occurrence/get/185465204
            </lm:guid>
            <lm:institutionCode>
               AM
            </lm:institutionCode>
            <lm:latitude>
               -31.4
            </lm:latitude>
            <lm:localId>
               37624453
            </lm:localId>
            <lm:longitude>
               152.1
            </lm:longitude>
            <lm:providerName>
               OZCAM (Online Zoological Collections of Australian Museums) Provider
            </lm:providerName>
            <lm:resourceName>
               OZCAM (Online Zoological Collections of Australian Museums) Provider
            </lm:resourceName>
         </lm:point>
         <lm:point>
            <lm:canonicalName>
               Aaaba fossicollis
            </lm:canonicalName>
            <lm:catalogNum>
               K.47342
            </lm:catalogNum>
            <lm:collectionCode>
               Entomology
            </lm:collectionCode>
            <lm:collectionDate>
               1923-01-01 00:00:00
            </lm:collectionDate>
            <lm:guid>
               http://data.gbif.org/ws/rest/occurrence/get/185465266
            </lm:guid>
            <lm:institutionCode>
               AM
            </lm:institutionCode>
            <lm:latitude>
               -30.2833
            </lm:latitude>
            <lm:localId>
               37624454
            </lm:localId>
            <lm:longitude>
               152.767
            </lm:longitude>
            <lm:providerName>
               OZCAM (Online Zoological Collections of Australian Museums) Provider
            </lm:providerName>
            <lm:resourceName>
               OZCAM (Online Zoological Collections of Australian Museums) Provider
            </lm:resourceName>
         </lm:point>
         <lm:point>
            <lm:canonicalName>
               Aaaba fossicollis
            </lm:canonicalName>
            <lm:catalogNum>
               K.59117
            </lm:catalogNum>
            <lm:collectionCode>
               Entomology
            </lm:collectionCode>
            <lm:guid>
               http://data.gbif.org/ws/rest/occurrence/get/185465267
            </lm:guid>
            <lm:institutionCode>
               AM
            </lm:institutionCode>
            <lm:latitude>
               -30.2667
            </lm:latitude>
            <lm:localId>
               37624455
            </lm:localId>
            <lm:longitude>
               152.85
            </lm:longitude>
            <lm:providerName>
               OZCAM (Online Zoological Collections of Australian Museums) Provider
            </lm:providerName>
            <lm:resourceName>
               OZCAM (Online Zoological Collections of Australian Museums) Provider
            </lm:resourceName>
         </lm:point>
      </lm:points>
      <lm:query>
         SELECT * from lm_getMicroOccurrencesBySet(3610525)
      </lm:query>
      <lm:queryCount>
         8
      </lm:queryCount>
      <lm:serviceType>
         occurrences
      </lm:serviceType>
   </lm:occurrenceSet>
</lm:response>
Explanation This example shows the XML representation of an occurrence set. Simple elements such as display name just have a text value between the start and end tags. More complex objects, such as lm:point, have data structures contained within them.