我想知道我是否可以获得相邻节点的值
<item>
<title>Cell Phone Plans That Make You Go Hmmm</title>
<link>http://www.articlegeek.com/computers/telecommunication_articles/10574- cellphoneplanst.htm</link>
<description>Cell phone plans across the globe vary a great deal. Some say that cell phone plans in the US are more costly. However, there are some advantages to the cell phone plans in the US which may balance the difference.</description>
</item>
这是我获取描述内容的查询,但我也想要与描述匹配的链接。
$userIN = "cell";
$nod2 = $xml->xpath
("//description
[text(
[contains
(translate(.,'ABCDEFGHJIKLMNOPQRSTUVWXYZ', 'abcdefghjiklmnopqrstuvwxyz'),
'".$userIN."')]]");