Returns the elements with the given route that contains the given attribute with the given value.
Syntax
public
abstract List< IParserDocument >
getDocumentsWithAttribute
(
String
attributeName
,
String
attributeValue
,
boolean
addByDefault
,
String...
route
)
Parameters
-
route –
The route to the elements
-
attributeName –
The name of the attribute
-
attributeValue –
The expected value of the attribute
-
addByDefault –
true if element should be returned in case it does not contain the given attribute
Returns
List of elements as new IParser documents
Exceptions
-
IllegalArgumentException –
if either of the arguments is null.