public class SearchDOM extends Object
Modifier and Type | Method and Description |
---|---|
List<Element> |
findAllTags(Element node,
String name)
Finds all Element child to a given element with a given tag name.
|
List<String> |
findAllText(Element node)
Finds all the texts contained in a Element
|
Element |
findTag(Element node,
String name)
Find next Element with a give Name in a tag
|
String |
findText(Element node)
Finds the text contained in an Element
|
static SearchDOM |
newInstance()
Return a new SearchDOM object, default
true to both trimText and ignoreBlank |
static SearchDOM |
newInstance(boolean trimText,
boolean ignoreBlank)
Creates a new SearchDOM instance
|
public static SearchDOM newInstance(boolean trimText, boolean ignoreBlank)
trimText
- should test be trimmed?ignoreBlank
- should blank spaces be ignored?public static SearchDOM newInstance()
true
to both trimText and ignoreBlankpublic String findText(Element node)
node
- the elementpublic List<String> findAllText(Element node)
node
- the elementpublic List<Element> findAllTags(Element node, String name)
node
- the elementname
- the name of the tag to be lookedCopyright © 2022 Fugerit. All rights reserved.