Révision 4010
TXM/trunk/bundles/org.txm.core/src/java/org/txm/importer/GetXPath.java (revision 4010) | ||
---|---|---|
15 | 15 |
/** |
16 | 16 |
* XPath wrapper |
17 | 17 |
* |
18 |
* Managed types: |
|
19 |
Boolean -- Boolean.class |
|
20 |
Number -- Number.class |
|
21 |
String -- String.class |
|
22 |
Nodeset -- XPathNodes.class |
|
23 |
Node -- Node.class |
|
24 |
|
|
25 |
* |
|
18 | 26 |
* @author mdecorde |
19 | 27 |
* |
20 | 28 |
*/ |
... | ... | |
31 | 39 |
xpath.setNamespaceContext(new PersonalNamespaceContext()); |
32 | 40 |
return xpath; |
33 | 41 |
} |
34 |
|
|
35 |
|
|
42 |
|
|
36 | 43 |
public static XPathEvaluationResult<?> evaluateExpression(XPath xpath, File xmlFile, String xpathstring) throws XPathExpressionException { |
37 | 44 |
|
38 | 45 |
return xpath.evaluateExpression(xpathstring, new StreamSource(xmlFile)); |
Formats disponibles : Unified diff