Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Cherichoc-
Creator
Creator

tExtractXMLField returns same firstname instead of moving to next firstname tag

I have an the below xml file . My job is tFileInputXML--->tExtractXMLField--->tlog

0695b00000PMTfgAAH.png 

My tExtractXMLField is set as the below. It keeps returning the Only the first firstname for all the other rows instead of the expected results. How can I set it to return only

0695b00000PMT8KAAX.png 0695b00000PMTnuAAH.png 

 

<root><status>success</status>   

   <data><users><firstname>Abby</firstname>

          <book><name>ABC</name> 

              <state><complete>true</complete></state>

          </book>

          <book><name>ZZZ</name>

              <state><complete>true</complete></state>

          </book> 

      </users>

      <users><firstname>Abdul</firstname>

         <book><name>SeeSaw</name>               

              <state><complete>true</complete></state>

         </book>

         <book><name>WWW</name>

              <state><complete>true</complete></state>

         </book>

       </users>

     </data>

</root>

Labels (6)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Change firstname to ....

 

"../firstname"

View solution in original post

4 Replies
Anonymous
Not applicable

Can you show your full tExtractXMLField configuration please?

Cherichoc-
Creator
Creator
Author

0695b00000PMYGRAA5.png0695b00000PMYGWAA5.png

Anonymous
Not applicable

Change firstname to ....

 

"../firstname"

Cherichoc-
Creator
Creator
Author

Thank you, it worked. I definitely need to learn more about xPath 🙂