Class XMLUtil

java.lang.Object
net.mcreator.util.XMLUtil

public class XMLUtil extends Object
  • Constructor Details

    • XMLUtil

      public XMLUtil()
  • Method Details

    • getChildrenWithName

      public static List<Element> getChildrenWithName(Element element, String... names)
      Returns a list of all child elements of the given element with the given name
      Parameters:
      element - Element to list children for
      names - Names of children to consider. If null, all children will be listed. If multiple names are provided, only the first name that matches any children will be considered and children with other names will be discarded.
      Returns:
      List of child elements
    • getDirectChildren

      public static List<Element> getDirectChildren(Element element)
    • getFirstChildrenWithName

      public static Element getFirstChildrenWithName(Element element, String... names)