Revision 32319
Added by Mateusz Kobos over 9 years ago
oozie2dot.py | ||
---|---|---|
25 | 25 |
xml_string = sys.stdin.read() |
26 | 26 |
## We don't care about namespaces, so we remove them. Analyzing the XML with |
27 | 27 |
## the namespace information is more difficult than without it. |
28 |
xml_string_no_namespaces= re.sub('xmlns="[^"]+"', '', xml_string) |
|
28 |
xml_string_no_namespaces1= re.sub('xmlns="[^"]+"', '', xml_string) |
|
29 |
xml_string_no_namespaces= re.sub("xmlns='[^']+'", "", xml_string_no_namespaces1) |
|
29 | 30 |
root = ET.fromstring(xml_string_no_namespaces) |
30 | 31 |
ignore_tags = ['parameters', 'global'] |
31 | 32 |
handlers_register = {'fork': handle_fork, 'decision': handle_decision, |
Also available in: Unified diff
Handling single quote in namespace definition