0
如何在下面的XML使用XSLT檢索XML的某些節點,如果節點具有名稱空間,則會出現問題。
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<rpc:ConQueryByExampleResponse
xmlns:rpc="http://siebel.com/asi/">
<SiebelMessage>
<ListOfContactInterfaceMobile
xmlns="http://www.siebel.com/xml/Contact%20Interface%20Mobile">
<Contact>
<FirstName>Siebel</FirstName>
<JobTitle>Sys Admin</JobTitle>
<LastName>Administrator</LastName>
<PersonUId>0-1</PersonUId>
<PersonalContact>Nva</PersonalContact>
<PrimaryOrganization>dga</PrimaryOrganization>
</Contact>
<Contact>
<FirstName>xyz</FirstName>
<JobTitle>Sn</JobTitle>
<LastName>Admin</LastName>
<PersonUId>0-2</PersonUId>
<PersonalContact>Nar</PersonalContact>
<PrimaryOrganization>adfg</PrimaryOrganization>
</Contact>
</ListOfContactInterfaceMobile>
</SiebelMessage>
</rpc:ConQueryByExampleResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
[在PHP SimpleXML對象上使用xpath,SOAP +名稱空間(不工作..)](http://stackoverflow.com/questions/3864359/using-xpath-on-a-php-simplexml- object-soap-namespaces-not-working) – 2011-03-15 14:43:51