我有以下xpath代码:
//div[@class="cont-calendar"]/ul//li/a/picture/img[contains(@title, 'M. Liga de Campeones') or contains(@title, '#vamos') or contains(@title, 'GOL')]/../../../../.. | //div[@class="cont-calendar"]/ul//li/a/picture/img[contains(@title, 'M. Liga de Campeones') or contains(@title, '#vamos') or contains(@title, 'GOL')]/@title {allowempty}
结果为两行, 有什么办法可以将它转换成一个吗?