| OLD | NEW |
| 1 """\ | 1 """Simple implementation of the Level 1 DOM. |
| 2 minidom.py -- a lightweight DOM implementation. | 2 |
| 3 Namespaces and other minor Level 2 features are also supported. |
| 3 | 4 |
| 4 parse("foo.xml") | 5 parse("foo.xml") |
| 5 | 6 |
| 6 parseString("<foo><bar/></foo>") | 7 parseString("<foo><bar/></foo>") |
| 7 | 8 |
| 8 Todo: | 9 Todo: |
| 9 ===== | 10 ===== |
| 10 * convenience methods for getting elements and text. | 11 * convenience methods for getting elements and text. |
| 11 * more testing | 12 * more testing |
| 12 * bring some of the writer and linearizer code into conformance with this | 13 * bring some of the writer and linearizer code into conformance with this |
| (...skipping 1956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1969 {'parser': parser}) | 1970 {'parser': parser}) |
| 1970 | 1971 |
| 1971 def getDOMImplementation(features=None): | 1972 def getDOMImplementation(features=None): |
| 1972 if features: | 1973 if features: |
| 1973 if isinstance(features, str): | 1974 if isinstance(features, str): |
| 1974 features = domreg._parse_feature_string(features) | 1975 features = domreg._parse_feature_string(features) |
| 1975 for f, v in features: | 1976 for f, v in features: |
| 1976 if not Document.implementation.hasFeature(f, v): | 1977 if not Document.implementation.hasFeature(f, v): |
| 1977 return None | 1978 return None |
| 1978 return Document.implementation | 1979 return Document.implementation |
| OLD | NEW |