Revision 812 tmp/org.txm.groovy.core/src/groovy/org/txm/scripts/teitxm/Xml2Ana.groovy

Xml2Ana.groovy (revision 812)
68 68
	HashMap<String,String> correspRef;
69 69

  
70 70
	/** The check tags. */
71
	HashMap<String,Boolean> checkTags;
71
	HashMap<String,Boolean> checkTags = new HashMap<String,Boolean>();
72 72

  
73 73
	/** The resp id. */
74 74
	def respId = [];
......
107 107
		if (idx > 0)
108 108
			textname = textname.substring(0, idx)
109 109

  
110
		checkTags = new HashMap<String,Boolean>();
110
		
111 111
		checkTags.put("respStmt",false);
112 112
		checkTags.put("titleStmt",false);
113 113
		checkTags.put("appInfo",false);
......
148 148
//		println "checkTags=$checkTags";
149 149
//		println "parser=$parser";
150 150
		firstElement++;
151
		if (getCheckTags().containsKey(parser.getLocalName())) {
152
			getCheckTags().put(parser.getLocalName(), true);
151
		
152
		if (this.checkTags.containsKey(parser.getLocalName())) {
153
			this.checkTags.put(parser.getLocalName(), true);
153 154
		}
154 155
		
155 156
		switch (parser.getLocalName()) {

Also available in: Unified diff