<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hello Calixte,<br>
<br>
Le 01/03/2015 21:30, Calixte Denizet a écrit :<br>
</div>
<blockquote cite="mid:54F376CC.8010908@scilab-enterprises.com"
type="cite">
<meta http-equiv="Context-Type" content="text/html;
charset=windows-1252">
.../...<br>
<blockquote cite="mid:54F360FA.9000404@free.fr" type="cite"> <tt>-->e
= xmlXPath(doc, "//itag[@target=""valueA2""]") </tt><tt>//
works:<br>
</tt><tt> e =</tt><tt><br>
</tt><tt>XML List</tt><tt><br>
</tt><tt>size: </tt><tt>1</tt><tt><br>
</tt><tt><br>
</tt></blockquote>
<br>
you got a list with one element<br>
<br>
<blockquote cite="mid:54F360FA.9000404@free.fr" type="cite"><tt> </tt>but
<tt>e</tt> has no attributes fields. So i cannot get its <tt>url
</tt>contents:<br>
<tt>-->e.</tt><tt>name</tt><tt><br>
</tt><tt> ans = </tt><tt><br>
</tt><tt> itag </tt><tt><br>
</tt></blockquote>
<br>
e(1).name<br>
<br>
fyi e.name is a shortcut to get all the nodes name in the list.<br>
</blockquote>
<br>
Aaa! Since e.name was working, i tried e.attributes, e.type,
e.parent, yielding errors.<br>
Even e.children returned an error, taking me away from index
addressing.<br>
In some way, shortcuting e(*).name in e.name without finding the
same with e(*).children etc... misled me.<br>
<br>
Thanks for this surprising trick.<br>
<br>
Samuel<br>
<br>
</body>
</html>