Revision 53685
Added by Giorgos Papanikos over 5 years ago
DatasetMappingIterator.java | ||
---|---|---|
111 | 111 |
else { |
112 | 112 |
log.debug("building document"); |
113 | 113 |
xml = this.buildDataset(document); |
114 |
if (xml == null){ |
|
114 |
if (!Utils.validateXml(xml)) { |
|
115 |
log.debug("xml not valid. setting to empty"); |
|
116 |
xml = null; |
|
117 |
} |
|
118 |
if (xml == null) { |
|
115 | 119 |
log.debug("could not build xml. returning empty"); |
116 | 120 |
xml = DatasetDocument.emptyXml(); |
117 | 121 |
} |
Also available in: Unified diff
Added safeguard parsing of produced xml to catch badly escaped illegal characters (eg etf: \001 escaped as ). Changed harvesting thread execution from ThreadExecutor to Thread.Start