How can I get any of tags inside sf:Address (ex. city, country, etc.) in below XML using XSLT? (This is the query response I got from Salesforce CRM using SOAP Generator XSL)
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="/" xmlns="urn:partner.soap.sforce" xmlns:xsi="; xmlns:sf="urn:sobject.partner.soap.sforce">
<soapenv:Header>
<LimitInfoHeader>
<limitInfo>
<current>331</current>
<limit>5000000</limit>
<type>API REQUESTS</type>
</limitInfo>
</LimitInfoHeader>
</soapenv:Header>
<soapenv:Body>
<queryResponse>
<result xsi:type="QueryResult">
<done>true</done>
<queryLocator xsi:nil="true"/>
<records xsi:type="sf:sObject">
<sf:type>User</sf:type>
<sf:Id>005cW000003aMnlQAE</sf:Id>
<sf:Id>005cW000003aMnlQAE</sf:Id>
<sf:Username>aatest</sf:Username>
<sf:FirstName>abc</sf:FirstName>
<sf:LastName>d</sf:LastName>
<sf:Title xsi:nil="true"/>
<sf:Phone>1234567890</sf:Phone>
<sf:Email>[email protected]</sf:Email>
<sf:MobilePhone xsi:nil="true"/>
<sf:Address xsi:type="address">
<latitude xsi:nil="true"/>
<longitude xsi:nil="true"/>
<city>Hyderabad</city>
<country>India</country>
<countryCode>IN</countryCode>
<postalCode>500081</postalCode>
<state>Andhra Pradesh</state>
<stateCode>AP</stateCode>
<street>Hi tech city</street>
</sf:Address>
</records>
<size>1</size>
</result>
</queryResponse>
</soapenv:Body>
</soapenv:Envelope>
I tried using <xsl:value-of select="//sf:Address/city"/>
but could not get the desired city value.
I expect the output to be Hyderabad.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742307791a4419288.html
评论列表(0条)