Reuse the same xpath code for XMLCard