1
J'ai:XPath SelectNodes
<div id="foo">
<a href="/xxx.php"> xx </a>
<a href="/xy.php"> xy </a>
<a href="/uid.php?id=123"> 123 </a>
<a href="/uid.php?id=344"> 344 </a>
</div>
I comment sélectionnez uniquement les éléments contenant 'id' à l'aide href HtmlAgilityPack?
avec sortie:
<a href="/uid.php?id=123"> 123 </a>
<a href="/uid.php?id=344"> 344 </a>
Merci, Avancé.
un peu plus facile syntaxe: '// un [contient (@href, 'id') ] ' – Sven
@Sven: Merci pour le conseil, je vais mettre à jour ma réponse. – rsbarro
@Sven: Works fine.Tks :). –