Class XpathParserUtil


  • public class XpathParserUtil
    extends Object
    The Class XpathParserUtil.
    Author:
    Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it Jan 21, 2016
    • Constructor Detail

      • XpathParserUtil

        public XpathParserUtil()
    • Method Detail

      • getTextFromXPathExpression

        public static List<String> getTextFromXPathExpression​(NamespaceContextMap context,
                                                              InputStream source,
                                                              String xpathExpression)
        Gets the text from x path expression.
        Parameters:
        context - the context
        source - the source
        xpathExpression - the xpath expression
        Returns:
        the text from x path expression
      • getTextFromXPathExpression

        public static List<String> getTextFromXPathExpression​(NamespaceContextMap context,
                                                              String source,
                                                              String xpathExpression)
        Gets the text from x path expression.
        Parameters:
        context - the context
        source - the source
        xpathExpression - the xpath expression
        Returns:
        the text from x path expression
      • stringToInputStream

        public static InputStream stringToInputStream​(String text)
        String to input stream.
        Parameters:
        text - the text
        Returns:
        the input stream