Nintex 2010 解析.net Webservice
<?xml version="1.0" encoding="utf-8"?> <xml> <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="Employee"> <xs:complexType> <xs:sequence> <xs:element name="EmployeeCode" type="xs:string" minOccurs="0" /> <xs:element name="ChineseName" type="xs:string" minOccurs="0" /> <xs:element name="EnglishName" type="xs:string" minOccurs="0" /> <xs:element name="EmployeeType" type="xs:string" minOccurs="0" /> <xs:element name="LegalEntity" type="xs:string" minOccurs="0" /> <xs:element name="DepartmentName" type="xs:string" minOccurs="0" /> <xs:element name="Position" type="xs:string" minOccurs="0" /> <xs:element name="Location" type="xs:string" minOccurs="0" /> <xs:element name="Gender" type="xs:string" minOccurs="0" /> <xs:element name="JoinDate" type="xs:string" minOccurs="0" /> <xs:element name="LeaveDate" type="xs:string" minOccurs="0" /> <xs:element name="ProbationPassDate" type="xs:string" minOccurs="0" /> <xs:element name="ReportTo" type="xs:string" minOccurs="0" /> <xs:element name="CostCenter" type="xs:string" minOccurs="0" /> <xs:element name="ADAccount" type="xs:string" minOccurs="0" /> <xs:element name="OT_Eligible" type="xs:string" minOccurs="0" /> <xs:element name="PositionLevel" type="xs:string" minOccurs="0" /> <xs:element name="LAS_Agent" type="xs:string" minOccurs="0" /> <xs:element name="Assistant" type="xs:string" minOccurs="0" /> <xs:element name="Mail" type="xs:string" minOccurs="0" /> <xs:element name="PhoneNo" type="xs:string" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> </xs:choice> </xs:complexType> </xs:element> </xs:schema> <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"> <NewDataSet xmlns=""> <Employee diffgr:id="Employee1" msdata:rowOrder="0"> <EmployeeCode>CN0168</EmployeeCode> <ChineseName>风影极光</ChineseName> <EnglishName>Luke Sheng</EnglishName> <EmployeeType>OFF</EmployeeType> <LegalEntity>IBMCN </LegalEntity> <DepartmentName>IT </DepartmentName> <Position>Head of IT & Head of China SAP Hub </Position> <Location>SH </Location> <Gender>M </Gender> <JoinDate>2015.06.07</JoinDate> <LeaveDate /> <ProbationPassDate>2015.07.07</ProbationPassDate> <ReportTo>CN0168 </ReportTo> <CostCenter>11111</CostCenter> <ADAccount>ibmcn-lvmingle </ADAccount> <OT_Eligible xml:space="preserve"> </OT_Eligible> <PositionLevel>4 </PositionLevel> <LAS_Agent>0 </LAS_Agent> </Employee> </NewDataSet> </diffgr:diffgram> </xml>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1" exclude-result-prefixes="xsl msxsl" xmlns:msxsl="urn:schemas-microsoft-com:xslt"> <xsl:template match="/"> <xsl:value-of select="/xml/diffgr:diffgram/NewDataSet/Employee"/> </xsl:template> </xsl:stylesheet>
输出:ibmcn-lvmingle