Class ElementIterator

    • Constructor Detail

      • ElementIterator

        public ElementIterator​(Element parent,
                               String localName,
                               Namespace namespace)
        Create a new instance of ElementIterator with the given parent element. Only child elements that match the given local name and namespace will be respected by hasNext() and nextElement().
        Parameters:
        parent -
        localName - local name the child elements must match
        namespace - namespace the child elements must match
      • ElementIterator

        public ElementIterator​(Element parent,
                               QName qname)
        Create a new instance of ElementIterator with the given parent element. Only child elements that match the given QName will be respected by hasNext() and nextElement().
        Parameters:
        parent -
        qname - name to match (exactly)
      • ElementIterator

        public ElementIterator​(Element parent)
        Create a new instance of ElementIterator with the given parent element. No filtering is applied to child elements that are iterated.
        Parameters:
        parent -