Class XMLUtil

java.lang.Object
org.apache.wsil.util.XMLUtil

public final class XMLUtil extends Object
This class contains a set of XML related utility methods.
Version:
1.0
  • Constructor Details

    • XMLUtil

      public XMLUtil()
  • Method Details

    • getAttributeValue

      public static String getAttributeValue(Element element, String attrName)
      Get attribute value.
    • getAttributeValueNS

      public static String getAttributeValueNS(Element element, String namespace, String attrName)
      Get attribute value.
    • getFirstChild

      public static Element getFirstChild(Element element)
      Get the first child element from the input elment.
    • getNextSibling

      public static Element getNextSibling(Element element)
      Get the next sibling element.
    • findNextSibling

      protected static Element findNextSibling(Node startNode)
      Find the next sibling element.
    • getText

      public static String getText(Element element)
      Get the text that is associated with this element.