0

Have a heck of a time writing XPATH to parse this XML response.

Source data is (removed a bunch to save the innocent:

`<?xml version="1.0" encoding="UTF-8"?><env>

<ProcessResponse>              
    <message>                     
    <payLoad>                            
        <BillingXMLMessage>                                   
            <Envelop>SITEINFORESPONSE</Envelop>
                              <COMPONENT DATATYPE="FLDPARAMINFO" NAME="ACCOUNTINFO">                                          
                                      <FIELD DATATYPE="FLDSTRING" NAME="ServiceType">/service/ip</FIELD>
                                      <FIELD DATATYPE="FLDBOOLEAN" NAME="ReactivationFlag">false</FIELD>`'

XPATH statement is
/env/ProcessResponse/message/payLoad/BillingXMLMessage/COMPONENT[1]/FIELD[@NAME='ServiceType']

Which only gets me

Element='<FIELD DATATYPE="FLDSTRING" NAME="ServiceType">/service/ip</FIELD>'

I need to get down to /service/ip

Any ideas?

2
Contributors
2
Replies
11
Views
2 Years
Discussion Span
Last Post by Charles_8
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.