I have this work in Talend that needs to extract a field and scroll it.
My big problem is that the code loops through the XML fields but returns null. Here is an example XML:
<?xml version="1.0" encoding="ISO-8859-1"?>
<empresas>
<empresa>
<imoveis>
<imovel>
[-- some fields -- ]
<fotos>
<nome id="" order="">photo1</nome>
<nome id="" order=""></nome>
<nome id="" order=""></nome>
<nome id="" order=""></nome>
</fotos>
</imovel>
[ -- other entries here -- ]
</imoveis>
</empresa>
</empresas>
Now, using the tExtractXMLField component, I'm trying to get the "fotos" element. Here is what I have in the component:

I tried to modify the XPath request and the XPath loop request, but as a result I either do not go through this field or get zero in the value field in tMap.
Here is the image of the assignment:

You can see that I got 4 elements from XML, but what I get is null in the "nome" field. There should be something wrong with XPath, but I cannot find the problem :(
Hope someone can help me. thanks Notes: I am using talendv4.1.2 on ubuntu 10.10 64bit