Revision 51934
Added by Claudio Atzori over 6 years ago
modules/dnet-openaireplus-mapping-utils/trunk/src/main/java/eu/dnetlib/data/transform/xml/VtdUtilityParser.java | ||
---|---|---|
97 | 97 |
} |
98 | 98 |
} |
99 | 99 |
|
100 |
public static String getSingleValue(final AutoPilot ap, final VTDNav nav, final String xpath) throws VtdException {
|
|
100 |
public static String getFirstValue(final AutoPilot ap, final VTDNav nav, final String xpath) throws VtdException {
|
|
101 | 101 |
try { |
102 | 102 |
ap.selectXPath(xpath); |
103 | 103 |
while (ap.evalXPath() != -1) { |
... | ... | |
111 | 111 |
} |
112 | 112 |
} |
113 | 113 |
|
114 |
@Deprecated |
|
115 |
public static String getSingleValue(final AutoPilot ap, final VTDNav nav, final String xpath) throws VtdException { |
|
116 |
return getFirstValue(ap, nav, xpath); |
|
117 |
} |
|
118 |
|
|
114 | 119 |
public static class Node { |
115 | 120 |
|
116 | 121 |
private String textValue; |
Also available in: Unified diff
more VTD utilities