Class DOMUtils


  • public class DOMUtils
    extends Object
    Utilities for handling DOM structures
    Author:
    Fugerit
    • Method Detail

      • attributesToProperties

        public static Properties attributesToProperties​(Element tag)
        Build a property object containing attributes of a xml Element.
        Parameters:
        tag - the element
        Returns:
        the attribute mapping as a propery object
      • attributesToProperties

        public static void attributesToProperties​(Element tag,
                                                  Properties props)
        Build a property object containing attributes of a xml Element.
        Parameters:
        tag - the element
        props - the properties to fill with element attibutes