Skip to main content
5-Regular Member
May 17, 2017
Question

XML attributes / elements issue

  • May 17, 2017
  • 1 reply
  • 1665 views

Hello everyone ,

I'm having a real struggle here . Let me set the scene : I'm calling REST API services from Integrity Modeler in Thingworx . I'm able to get my XML file that works . My issue is when i want to get the "elements" from it .Using this : xml.* I get the content of the elements like : Complete or Operation etc ( see below) . What I would like to do is xml.Name and then get "BMW_Models"

Does anyone know why this syntax doesn't work ? I tried serval ones and nothing comes up .

Thanks in advance for the support .


case.png

1 reply

22-Sapphire I
May 17, 2017

That content in the href looks like one piece of data, you may have to get that data and then do a split on it based on / to find different items.

5-Regular Member
May 17, 2017

Thanks for replying  . The contente is like a level under what I'm looking for . What I would like first is to get name or the ID and to display that