I want to obtain an attribute using XPath.

```
<?xml version="1.0"?>
<GetTest>
<Result>
<id>10</id>
<name>ABC</name>
</Result>
<Result>
<id>1</id>
<name>DEF</name>
</Result>
<Result>
<id>50</id>
<name>GHI</name>
</Result>
</GetTest>

```

I want now to obtain 2 because the id is minimal in the second attibute. Anybody has an idea?

Thanks