path = (
    """//PersApplicationInfo/InsuredOrPrincipal[InsuredOrPrincipalInfo/InsuredOrPrincipalRoleCd="AN"]/GeneralPartyInfo"""
    )
result = tree.xpath(path)
print(result)
XPath predicate with sub-paths with lxml?