일부 결과를 웹 파트에 쓰도록 Microsoft Office SharePoint Server 검색 서비스에 쿼리하고 있습니다. 쿼리가 올바르게 작동하지만 JQuery를 통해 XML 응답을 구문 분석하는 데 문제가 있습니다. 이 값의 선두로부터의xml을 jquery로 구문 분석
<document>
<properties>
<Property>
<Name>p1</Name>
<Type>String</Type>
<Value>blue</Value>
</Property>
<Property>
<Name>title</Name>
<Type>string</Type>
<Value>titreA</Value>
</Property>
</properties>
</document>
<document>
<properties>
<Property>
<Name>p1</Name>
<Type>String</Type>
<Value>blue</Value>
</Property>
<Property>
<Name>title</Name>
<Type>string</Type>
<Value>titreB</Value>
</Property>
</properties>
</document>
<document>
<properties>
<Property>
<Name>p1</Name>
<Type>String</Type>
<Value>green</Value>
</Property>
<Property>
<Name>title</Name>
<Type>string</Type>
<Value>titreC</Value>
</Property>
</properties>
</document>
<document>
<properties>
<Property>
<Name>p1</Name>
<Type>String</Type>
<Value>red</Value>
</Property>
<Property>
<Name>title</Name>
<Type>string</Type>
<Value>titreD</Value>
</Property>
</properties>
</document>
가 어떻게 P1 값을 검색 할 수 있으며, 수 : 아래
는 XML 응답입니까? 이처럼 : 블루 (2), 녹색 (1), (1)
과 같다. – ScottE
응답을 처리하는 자바 스크립트를 게시해야합니다. – harpo