Package lumis.util

Class Xml


  • @StableMinor(version="14.0",
                 sinceVersion="8.1")
    public class Xml
    extends Object
    Provides XML operations.
    Since:
    8.1.0
    Version:
    $Revision: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 2021) $
    • Constructor Detail

      • Xml

        public Xml()
    • Method Detail

      • valueOf

        public static String valueOf​(String xpath,
                                     Node context)
        Returns the evaluated value of the given XPath from the given context.
        Parameters:
        xpath - the XPath.
        context - the context.
        Returns:
        the evaluated value of the given XPath from the given context.
        Since:
        8.1.0
      • selectNodes

        public static List<Node> selectNodes​(String xpath,
                                             Node context)
        Returns the matched nodes from the given XPath and context.
        Parameters:
        xpath - the XPath.
        context - the context.
        Returns:
        the matched nodes from the given XPath and context.
        Since:
        8.1.0
      • selectSingleNode

        public static Node selectSingleNode​(String xpath,
                                            Node context)
        Returns the matched node from the given XPath and context.
        Parameters:
        xpath - the XPath.
        context - the context.
        Returns:
        the matched node from the given XPath and context.
        Since:
        8.1.0