|
Inhaltsverzeichnis
Zuletzt aktualisiert
|
String xml = "<entry>vor<text>innen</text>aussen</entry>"; XPath xpath = XPathFactory.newInstance().newXPath(); String expression = "//text"; InputSource xmlsrc = new InputSource( new StringReader( xml ) ); String str = xpath.evaluate( expression, xmlsrc ); System.out.println( str ); |
Kommentar hinzufügen