Package lumis.util

Class Xml


  • @StableMinor(version="15.0",
                 sinceVersion="8.1")
    public class Xml
    extends java.lang.Object
    Provides XML operations.
    Since:
    8.1.0
    Version:
    $Revision: 25303 $ $Date: 2022-10-22 22:48:02 -0300 (Sat, 22 Oct 2022) $
    • Constructor Summary

      Constructors 
      Constructor Description
      Xml()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<org.w3c.dom.Node> selectNodes​(java.lang.String xpath, org.w3c.dom.Node context)
      Returns the matched nodes from the given XPath and context.
      static org.w3c.dom.Node selectSingleNode​(java.lang.String xpath, org.w3c.dom.Node context)
      Returns the matched node from the given XPath and context.
      static java.lang.String valueOf​(java.lang.String xpath, org.w3c.dom.Node context)
      Returns the evaluated value of the given XPath from the given context.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Xml

        public Xml()
    • Method Detail

      • valueOf

        public static java.lang.String valueOf​(java.lang.String xpath,
                                               org.w3c.dom.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 java.util.List<org.w3c.dom.Node> selectNodes​(java.lang.String xpath,
                                                                   org.w3c.dom.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 org.w3c.dom.Node selectSingleNode​(java.lang.String xpath,
                                                        org.w3c.dom.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