How to get field in xml?

Hi

I need to get some field in my xml file but i don't know how to get it.

Here my xml

<?xml version="1.0"?>
<cluster>
  <cs_list>
    <cs>
      <id>1027</id>
      <status>active</status>
      <host_info>
        <host>10.0.0.1</host>
        <host_id>123</host_id>
        <location>0.0.0</location>
      </host_info>
    </cs>
    <cs>
      <id>1028</id>
      <status>active</status>
      <host_info>
        <host>10.0.0.1</host>
        <host_id>123</host_id>
        <location>0.0.0</location>
      </host_info>
    </cs>
  </cs_list>
</cluster>

I want to get

  [cs][id], [cs][id][status], [cs][id][location]

Thanks

Use an xml filter. There are many examples in this forum of how to configure it, such as this one.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.