getContentByPath

fun Element.getContentByPath(vararg names: String?): Element?(source)

Traverses a path of Elements based on their names by monadically calling either getContentByName (if the name is not null) or getSingleContent (if the name is null).