[gdome] xpath query...



In the xml snippent below, I want to point to CONFIGPARAM element with
configId="5".

I've tagged that element with string
#### this is the element ####


So can I use xpath:
//SGCLIENT/DATA/CLIENT_CONFIG/CONFIG[1]/CONFIGPARAM configId='5'

<SGCLIENT VERSION="1.0">

  <HEADER/>

  <DATA>

    <CLIENT_CONFIG>

      <CONFIG profile_id="2" policy_id="1" item_id="2" item_value="0" 
              permissionid="1025">

        <CONFIGPARAM configId="1">

          <CONFIGPARAMVAL config_value="abcd"/>

          <CONFIGPARAMVAL config_value="xyz"/>

          <CONFIGPARAMVAL config_value="012"/>

          <CONFIGPARAMVAL config_value="987"/>

        </CONFIGPARAM>

      </CONFIG>

      <CONFIG profile_id="2" policy_id="4" item_id="45" item_value="1"
              permissionid="1031">

        <CONFIGPARAM configId="5">     #### this is the element ####

          <CONFIGPARAMVAL config_value="2"/>

        </CONFIGPARAM>

      </CONFIG>

    </CLIENT_CONFIG>

  </DATA>

</SGCLIENT>


Kindly guide me.

Regards,
Sam Oak.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]