nodes list  extension.xml

nodes list  extension.xml

  
Good morning,

I am working with the extension "extension.xml-5.0.2.xif", but i have a problem in accessing elements of XML.
I have several nodes with the same name <INI><FCT001> and i use the element "XmlDocument_SelectNodes" to separate this XML into groups. But now
i can't fetch the values of each group.

How do I catch each item in the list of objects that "XmlDocument_SelectNodes" returns?
Or is there another way?

My example:

<INI>
    <FCT001>
        <cod_ponto_ent_mp>1111</cod_ponto_ent_mp>
        <CAB000>
            <nome_cliente1>Um</nome_cliente1>
        </CAB000>
    </FCT001>
    <FCT001>
        <cod_ponto_ent_mp>2222</cod_ponto_ent_mp>
        <CAB000>
            <nome_cliente1>Dois<nome_cliente1>
        </CAB000>
    </FCT001>
    <FCT001>
        <cod_ponto_ent_mp>3333</cod_ponto_ent_mp>
        <CAB000>
            <nome_cliente1>Tres</nome_cliente1>
        </CAB000>
   </FCT001>
   <FCT001>
        <cod_ponto_ent_mp>4444</cod_ponto_ent_mp>
        <CAB000>
             <nome_cliente1>Quatro</nome_cliente1>
        </CAB000>
    </FCT001>
</INI>

Attached is my test application.

Greetings.

Hi João,

You need to manually iterate the xml-element list returned by the 'XmlDocument_SelectNodes' action. Afterwards, you need to use 'XmlNodeList_Item' to get the elements from the list.

Check the attached espace.


Regards,
João Portela
again tanks, you help me a lot
Hi,
Please see my attachment .In that  I have build two actions.
1.XML DOCUMNET LOAD
2.XML DOCUMNET_SELECT NODE

NOW I NEED TO STORE THE RESULT OF XML DOCUMNET_SELECT NODE INTO FOREACH.
BUT FORACH ITS ASKING FOR RECORDLIST DATATYPE WHAT WE GET FROM XMLDOCUMENT_SELECTNODE IS OBJECT DATATYPE.SO HOW DO WE ITERATE AND I WANT THIS NODES TO BE STORED IN ATABLE.

REGARDS,
CR
Hi,

You need to retrieve the number of elements in the list, and iterate through the list with a numeric variable, getting one element of the list at each step.
You can't use For Each.