admin管理员组文章数量:1332873
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.
本文标签: xsltParsing through XML when xsitypequotaddressquotgtStack Overflow
版权声明:本文标题:xslt - Parsing through XML when xsi:type="address"> - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742307790a2450265.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论