source: TI02-CSML/trunk/services/3rdParty/OWSLib-0.2.0/owslib/etree.py @ 2194

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI02-CSML/trunk/services/3rdParty/OWSLib-0.2.0/owslib/etree.py@2194
Revision 2194, 853 bytes checked in by lawrence, 13 years ago (diff)

Adding various specs and 3rd party code of interest for the CSML
services development.

RevLine 
[2194]1# =============================================================================
2# OWSLib. Copyright (C) 2005 Sean C. Gillies
3#
4# Contact email: sgillies@frii.com
5# =============================================================================
6
7# try to find elementtree or lxml
8try:
9    import elementtree.ElementTree as etree
10    # Monkey Patch adds to the default well known namespaces
11    etree._namespace_map.update({
12        "http://www.w3.org/1999/02/22-rdf-syntax-ns#":  "rdf", 
13        "http://purl.org/rss/1.0/":                     "rss", 
14        "http://purl.org/rss/1.0/modules/taxonomy/":    "taxo", 
15        "http://purl.org/dc/elements/1.1/":             "dc", 
16        "http://purl.org/rss/1.0/modules/syndication/": "syn", 
17        "http://www.w3.org/2003/01/geo/wgs84_pos#":     "geo"})
18except ImportError:
19    from lxml import etree
20
Note: See TracBrowser for help on using the repository browser.