使用href属性在网站中附加了pdf文件,我需要使用php中的xpath下载文件
<a id="ContentPlaceholder1_hlPublicAgendaFile" class="tracked Link" data-type="agenda" href="FileOpen.aspx?Type=14&ID=2157&Inline=True" target="_blank">Agenda</a>
我需要使用xpath下载href属性文件
$elements = $xpath->evaluate('string(//tr[@id ="ContentPlaceholder1_trMeetingDetail"]/td[@id="ContentPlaceholder1_tdMainContent"]/div[@id="ContentPlaceholder1_pnlDownloads"]/a[@id="ContentPlaceholder1_hlPublicAgendaFile"]/@href)');
$ elements返回此链接FileOpen.aspx?Type = 14&ID = 2157&Inline = True但 实际的链接是这个