Quantcast
Channel: Office 365 for Mac - Recent Threads
Viewing all articles
Browse latest Browse all 5047

Getting lenght/size of the document in response xml.

$
0
0

Hi,

 

The response XML for following URL does not contains length of the document present inside the Documents library under the "entry". element.
URL : http://%3cdomain%3e.sharepoint.com/TeamSite/_vti_bin/ListData.svc/Documents

This URL is invoked using org.apache.http.client.HttpClient and org.apache.http.client.methods.HttpGet

Kindly help in getting the length of the document.

 

A part of the Response XML:

 

<entry m:etag="W/&quot;2&quot;">
    <id>http://<domain>.sharepoint.com/TeamSite/_vti_bin/ListData.svc/Documents(4)</id>
    <title type="text"></title>
    <updated>2013-01-02T03:38:25-08:00</updated>
    <author>
      <name />
    </author>
    <link m:etag="&quot;{4E03FD8D-0126-4FD7-A710-7CA0C5B8C394},2&quot;" rel="edit-media" title="DocumentsItem" href="Documents(4)/$value" />
    <link rel="edit" title="DocumentsItem" href="Documents(4)" />
    <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/CreatedBy" type="application/atom+xml;type=entry" title="CreatedBy" href="Documents(4)/CreatedBy" />
    <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ModifiedBy" type="application/atom+xml;type=entry" title="ModifiedBy" href="Documents(4)/ModifiedBy" />
    <link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/CheckedOutTo" type="application/atom+xml;type=entry" title="CheckedOutTo" href="Documents(4)/CheckedOutTo" />
    <category term="Microsoft.SharePoint.DataService.DocumentsItem" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
    <content type="application/octetstream" src="http://%3cdomain%20originalattribute=/" />
    <m:properties xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
      <d:Id m:type="Edm.Int32">4</d:Id>
      <d:ContentTypeID>0x010100DFF67161EFFC3C46A8FD20E81650FD3C00E0A03F306D51DE44816F3E4ED69BE7A8</d:ContentTypeID>
      <d:ContentType>Word</d:ContentType>
      <d:Created m:type="Edm.DateTime">2013-01-02T03:36:12</d:Created>
      <d:CreatedById m:type="Edm.Int32">11</d:CreatedById>
      <d:Modified m:type="Edm.DateTime">2013-01-02T03:38:25</d:Modified>
      <d:ModifiedById m:type="Edm.Int32">11</d:ModifiedById>
      <d:CopySource m:null="true"></d:CopySource>
      <d:ApprovalStatus>0</d:ApprovalStatus>
      <d:Path>/TeamSite/Documents</d:Path>
      <d:CheckedOutToId m:type="Edm.Int32" m:null="true"></d:CheckedOutToId>
      <d:Name><docname>.docx</d:Name>
      <d:VirusStatus>77567</d:VirusStatus>
      <d:IsCurrentVersion m:type="Edm.Boolean">true</d:IsCurrentVersion>
      <d:Owshiddenversion m:type="Edm.Int32">2</d:Owshiddenversion>
      <d:Version>1.0</d:Version>
      <d:Title m:null="true"></d:Title>
    </m:properties>
  </entry>


Viewing all articles
Browse latest Browse all 5047

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>