Package net.mcreator.util
Class XMLUtil
java.lang.Object
net.mcreator.util.XMLUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetChildrenWithName
(Element element, String... names) Returns a list of all child elements of the given element with the given namegetDirectChildren
(Element element) static Element
getFirstChildrenWithName
(Element element, String... names)
-
Constructor Details
-
XMLUtil
public XMLUtil()
-
-
Method Details
-
getChildrenWithName
Returns a list of all child elements of the given element with the given name- Parameters:
element
- Element to list children fornames
- 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
-
getFirstChildrenWithName
-