Project

General

Profile

« Previous | Next » 

Revision 52062

added integration test for VTD parser, reads the datacite collection and provide statistics about the parser performances

View differences:

VtdUtilityParser.java
77 77

  
78 78
	private static Node asNode(final VTDNav vn) throws NavException {
79 79
		final Node currentNode = new Node();
80
		final String name = vn.toRawString(vn.getCurrentIndex());
81
		currentNode.setName(name.contains(NS_SEPARATOR) ? StringUtils.substringAfter(name, NS_SEPARATOR) : name);
82

  
80 83
		int t = vn.getText();
81 84
		if (t >= 0) {
82
			final String name = vn.toRawString(vn.getCurrentIndex());
83
			currentNode.setName(name.contains(NS_SEPARATOR) ? StringUtils.substringAfter(name, NS_SEPARATOR) : name);
84 85
			currentNode.setTextValue(vn.toNormalizedString(t));
85 86
		}
86 87
		currentNode.setAttributes(getAttributes(vn));

Also available in: Unified diff