我正在使用 XQuery 从 Sharepoint 中提取数据。xquery 代码是:
{for $ancestor0 in $queryresponse//*:row
return<Row>
<Title>{fn:data($ancestor0/@ows_Title)}</Title>
<EventDate>{fn:data($ancestor0/@ows_EventDate)}</EventDate>
返回的数据是:
<h1>Meeting Agenda Event Date</h1>
New England APCD Work Group 6/26/2013
NY APD Workgroup 6/27/2013
MCDB 2012 Data Submission Bi-weekly 7/2/2013
MA APCD 7/3/2013
VA APCD Monthly Status 7/4/2013
Cross State Meeting 7/5/2013
NY APD Workgroup 7/11/2013
MA APCD 7/17/2013
Cross State Meeting 7/19/2013
NY APD Workgroup 7/25/2013
MA APCD 7/31/2013
New England APCD Work Group 7/31/2013
VA APCD Monthly Status 8/1/2013
Cross State Meeting 8/2/2013
我需要获取当前周的行吗?所以我只会得到以下行作为结果:
MA APCD 7/17/2013
Cross State Meeting 7/19/2013
有人可以帮我写代码吗?