خرید بک لینک

Vote count: 0

The xml :

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
  <GetDataResponse xmlns="http://wesoft.com/webservices/">
     <GetDataResult>
        <diffgr:diffgram xmlns:msdata="urn:schemas-abc-com:xml-msdata" xmlns:diffgr="urn:schemas-abc-com:xml-diffgram-v1">
           <CompListData xmlns="">
              <Table diffgr:id="Table1" msdata:rowOrder="0" diffgr:hasChanges="inserted">
                 <Comp>JL-C</Comp>
                 <Type>JOB</Type>
                 <Cost>Lakhs</Cost>
              </Table>
           </CompListData>
       </diffgr:diffgram>
     </GetDataResult>
  </GetDataResponse>
</soap:Body>
</soap:Envelope>

The xslt :

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="s xsi xsd ">
<xsl:output method="xml" indent="yes"></xsl:output>
<xsl:strip-space elements="*" />
<xsl:template match="/">

    <xsl:if test="s:Envelope/s:Body/GetDataResponse/GetDataResult/diffgr/CompListData/Table/Type">
        <JobType>
            <xsl:value-of
                select="s:Envelope/s:Body/GetDataResponse/GetDataResult/diffgr/CompListData/Table/Type"></xsl:value-of>
        </JobType>
    </xsl:if>
</xsl:template>
</xsl:stylesheet>

The Output i m getting is the first line of the xslt

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

Can someone guide me how to handle the 'diffgr:diffgram' inside the body and get the value of 'Type' in the 'JobType' tag.

asked 31 secs ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 21 مرداد 1395 ساعت: 16:56

صفحه بندی