Converts the tag type found in the root and converts them using the func and appends them to the values.
(root, tag, values, func)
| 228 | ########################################################################################### |
| 229 | # private xml functions |
| 230 | def __convert(root, tag, values, func): |
| 231 | """Converts the tag type found in the root and converts them using the func |
| 232 | and appends them to the values. |
| 233 | """ |
| 234 | elements = root.getElementsByTagName(tag) |
| 235 | |
| 236 | for element in elements: |
| 237 | converted = func(element) |
| 238 | |
| 239 | # Append to the list |
| 240 | __append_list(values, converted) |
| 241 | |
| 242 | |
| 243 | def __convert_enum(node): |
no test coverage detected
searching dependent graphs…