summaryrefslogtreecommitdiff
path: root/parsers/INL_xml_parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'parsers/INL_xml_parser.py')
-rw-r--r--parsers/INL_xml_parser.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/parsers/INL_xml_parser.py b/parsers/INL_xml_parser.py
index 968bf55..879dad7 100644
--- a/parsers/INL_xml_parser.py
+++ b/parsers/INL_xml_parser.py
@@ -5,11 +5,13 @@ except ImportError:
KNOWN_FIELD_TAGS = ['100', '110', '151']
+TAG_WHITELIST = ['100', '400', '700', '678', '667', '151', '550', '451']
class INLXmlParser:
- def __init__(self, reader, whitelist=None):
+ def __init__(self, reader, whitelist=TAG_WHITELIST):
self.reader = reader
- self.whitelist = whitelist or KNOWN_FIELD_TAGS
+ #self.whitelist = whitelist or KNOWN_FIELD_TAGS
+ self.whitelist = whitelist
def clearxml(self):
newTreeRoot = ET.Element('data')