http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/4261deb7/odata2-lib/odata-client-core/src/test/resources/ProductsFeed.xml
----------------------------------------------------------------------
diff --git a/odata2-lib/odata-client-core/src/test/resources/ProductsFeed.xml 
b/odata2-lib/odata-client-core/src/test/resources/ProductsFeed.xml
new file mode 100644
index 0000000..23a4eb0
--- /dev/null
+++ b/odata2-lib/odata-client-core/src/test/resources/ProductsFeed.xml
@@ -0,0 +1,474 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+         or more contributor license agreements.  See the NOTICE file
+         distributed with this work for additional information
+         regarding copyright ownership.  The ASF licenses this file
+         to you under the Apache License, Version 2.0 (the
+         "License"); you may not use this file except in compliance
+         with the License.  You may obtain a copy of the License at
+  
+           http://www.apache.org/licenses/LICENSE-2.0
+  
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+         under the License.
+-->
+<feed 
xml:base="http://services.odata.org/(S(tcjpjrwvrq5cbwf1yqulu1hc))/V2/OData/OData.svc/"
 xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"; 
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"; 
xmlns="http://www.w3.org/2005/Atom";>
+  <title type="text">Products</title>
+  
<id>http://services.odata.org/(S(tcjpjrwvrq5cbwf1yqulu1hc))/V2/OData/OData.svc/Products/</id>
+  <updated>2017-04-07T05:44:22Z</updated>
+  <link rel="self" title="Products" href="Products" />
+  <entry>
+    
<id>http://services.odata.org/(S(tcjpjrwvrq5cbwf1yqulu1hc))/V2/OData/OData.svc/Products(0)</id>
+    <title type="text">Bread</title>
+    <summary type="text">Whole grain bread</summary>
+    <updated>2017-04-07T05:44:22Z</updated>
+    <author>
+      <name />
+    </author>
+    <link rel="edit" title="Product" href="Products(0)" />
+    <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"; 
type="application/atom+xml;type=entry" title="Category" 
href="Products(0)/Category" />
+    <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"; 
type="application/atom+xml;type=entry" title="Supplier" 
href="Products(0)/Supplier">
+      <m:inline>
+        <entry m:etag="W/&quot;0&quot;">
+          
<id>http://services.odata.org/(S(tcjpjrwvrq5cbwf1yqulu1hc))/V2/OData/OData.svc/Suppliers(1)</id>
+          <title type="text">Tokyo Traders</title>
+          <updated>2017-04-07T05:44:22Z</updated>
+          <author>
+            <name />
+          </author>
+          <link rel="edit" title="Supplier" href="Suppliers(1)" />
+          <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"; 
type="application/atom+xml;type=feed" title="Products" 
href="Suppliers(1)/Products" />
+          <category term="ODataDemo.Supplier" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+          <content type="application/xml">
+            <m:properties>
+              <d:ID m:type="Edm.Int32">1</d:ID>
+              <d:Name>Tokyo Traders</d:Name>
+              <d:Concurrency m:type="Edm.Int32">0</d:Concurrency>
+              <d:Address m:type="ODataDemo.Address">
+                <d:Street>NE 40th</d:Street>
+                <d:City>Redmond</d:City>
+                <d:State>WA</d:State>
+                <d:ZipCode>98052</d:ZipCode>
+                <d:Country>USA</d:Country>
+              </d:Address>
+            </m:properties>
+          </content>
+        </entry>
+      </m:inline>
+    </link>
+    <category term="ODataDemo.Product" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+    <content type="application/xml">
+      <m:properties>
+        <d:ID m:type="Edm.Int32">0</d:ID>
+        <d:ReleaseDate 
m:type="Edm.DateTime">1992-01-01T00:00:00</d:ReleaseDate>
+        <d:DiscontinuedDate m:type="Edm.DateTime" m:null="true" />
+        <d:Rating m:type="Edm.Int32">4</d:Rating>
+        <d:Price m:type="Edm.Decimal">2.5</d:Price>
+      </m:properties>
+    </content>
+  </entry>
+  <entry>
+    
<id>http://services.odata.org/(S(tcjpjrwvrq5cbwf1yqulu1hc))/V2/OData/OData.svc/Products(1)</id>
+    <title type="text">Milk</title>
+    <summary type="text">Low fat milk</summary>
+    <updated>2017-04-07T05:44:22Z</updated>
+    <author>
+      <name />
+    </author>
+    <link rel="edit" title="Product" href="Products(1)" />
+    <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"; 
type="application/atom+xml;type=entry" title="Category" 
href="Products(1)/Category" />
+    <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"; 
type="application/atom+xml;type=entry" title="Supplier" 
href="Products(1)/Supplier">
+      <m:inline>
+        <entry m:etag="W/&quot;0&quot;">
+          
<id>http://services.odata.org/(S(tcjpjrwvrq5cbwf1yqulu1hc))/V2/OData/OData.svc/Suppliers(0)</id>
+          <title type="text">Exotic Liquids</title>
+          <updated>2017-04-07T05:44:22Z</updated>
+          <author>
+            <name />
+          </author>
+          <link rel="edit" title="Supplier" href="Suppliers(0)" />
+          <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"; 
type="application/atom+xml;type=feed" title="Products" 
href="Suppliers(0)/Products" />
+          <category term="ODataDemo.Supplier" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+          <content type="application/xml">
+            <m:properties>
+              <d:ID m:type="Edm.Int32">0</d:ID>
+              <d:Name>Exotic Liquids</d:Name>
+              <d:Concurrency m:type="Edm.Int32">0</d:Concurrency>
+              <d:Address m:type="ODataDemo.Address">
+                <d:Street>NE 228th</d:Street>
+                <d:City>Sammamish</d:City>
+                <d:State>WA</d:State>
+                <d:ZipCode>98074</d:ZipCode>
+                <d:Country>USA</d:Country>
+              </d:Address>
+            </m:properties>
+          </content>
+        </entry>
+      </m:inline>
+    </link>
+    <category term="ODataDemo.Product" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+    <content type="application/xml">
+      <m:properties>
+        <d:ID m:type="Edm.Int32">1</d:ID>
+        <d:ReleaseDate 
m:type="Edm.DateTime">1995-10-01T00:00:00</d:ReleaseDate>
+        <d:DiscontinuedDate m:type="Edm.DateTime" m:null="true" />
+        <d:Rating m:type="Edm.Int32">3</d:Rating>
+        <d:Price m:type="Edm.Decimal">3.5</d:Price>
+      </m:properties>
+    </content>
+  </entry>
+  <entry>
+    
<id>http://services.odata.org/(S(tcjpjrwvrq5cbwf1yqulu1hc))/V2/OData/OData.svc/Products(2)</id>
+    <title type="text">Vint soda</title>
+    <summary type="text">Americana Variety - Mix of 6 flavors</summary>
+    <updated>2017-04-07T05:44:22Z</updated>
+    <author>
+      <name />
+    </author>
+    <link rel="edit" title="Product" href="Products(2)" />
+    <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"; 
type="application/atom+xml;type=entry" title="Category" 
href="Products(2)/Category" />
+    <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"; 
type="application/atom+xml;type=entry" title="Supplier" 
href="Products(2)/Supplier">
+      <m:inline>
+        <entry m:etag="W/&quot;0&quot;">
+          
<id>http://services.odata.org/(S(tcjpjrwvrq5cbwf1yqulu1hc))/V2/OData/OData.svc/Suppliers(0)</id>
+          <title type="text">Exotic Liquids</title>
+          <updated>2017-04-07T05:44:22Z</updated>
+          <author>
+            <name />
+          </author>
+          <link rel="edit" title="Supplier" href="Suppliers(0)" />
+          <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"; 
type="application/atom+xml;type=feed" title="Products" 
href="Suppliers(0)/Products" />
+          <category term="ODataDemo.Supplier" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+          <content type="application/xml">
+            <m:properties>
+              <d:ID m:type="Edm.Int32">0</d:ID>
+              <d:Name>Exotic Liquids</d:Name>
+              <d:Concurrency m:type="Edm.Int32">0</d:Concurrency>
+              <d:Address m:type="ODataDemo.Address">
+                <d:Street>NE 228th</d:Street>
+                <d:City>Sammamish</d:City>
+                <d:State>WA</d:State>
+                <d:ZipCode>98074</d:ZipCode>
+                <d:Country>USA</d:Country>
+              </d:Address>
+            </m:properties>
+          </content>
+        </entry>
+      </m:inline>
+    </link>
+    <category term="ODataDemo.Product" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+    <content type="application/xml">
+      <m:properties>
+        <d:ID m:type="Edm.Int32">2</d:ID>
+        <d:ReleaseDate 
m:type="Edm.DateTime">2000-10-01T00:00:00</d:ReleaseDate>
+        <d:DiscontinuedDate m:type="Edm.DateTime" m:null="true" />
+        <d:Rating m:type="Edm.Int32">3</d:Rating>
+        <d:Price m:type="Edm.Decimal">20.9</d:Price>
+      </m:properties>
+    </content>
+  </entry>
+  <entry>
+    
<id>http://services.odata.org/(S(tcjpjrwvrq5cbwf1yqulu1hc))/V2/OData/OData.svc/Products(3)</id>
+    <title type="text">Havina Cola</title>
+    <summary type="text">The Original Key Lime Cola</summary>
+    <updated>2017-04-07T05:44:22Z</updated>
+    <author>
+      <name />
+    </author>
+    <link rel="edit" title="Product" href="Products(3)" />
+    <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"; 
type="application/atom+xml;type=entry" title="Category" 
href="Products(3)/Category" />
+    <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"; 
type="application/atom+xml;type=entry" title="Supplier" 
href="Products(3)/Supplier">
+      <m:inline>
+        <entry m:etag="W/&quot;0&quot;">
+          
<id>http://services.odata.org/(S(tcjpjrwvrq5cbwf1yqulu1hc))/V2/OData/OData.svc/Suppliers(0)</id>
+          <title type="text">Exotic Liquids</title>
+          <updated>2017-04-07T05:44:22Z</updated>
+          <author>
+            <name />
+          </author>
+          <link rel="edit" title="Supplier" href="Suppliers(0)" />
+          <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"; 
type="application/atom+xml;type=feed" title="Products" 
href="Suppliers(0)/Products" />
+          <category term="ODataDemo.Supplier" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+          <content type="application/xml">
+            <m:properties>
+              <d:ID m:type="Edm.Int32">0</d:ID>
+              <d:Name>Exotic Liquids</d:Name>
+              <d:Concurrency m:type="Edm.Int32">0</d:Concurrency>
+              <d:Address m:type="ODataDemo.Address">
+                <d:Street>NE 228th</d:Street>
+                <d:City>Sammamish</d:City>
+                <d:State>WA</d:State>
+                <d:ZipCode>98074</d:ZipCode>
+                <d:Country>USA</d:Country>
+              </d:Address>
+            </m:properties>
+          </content>
+        </entry>
+      </m:inline>
+    </link>
+    <category term="ODataDemo.Product" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+    <content type="application/xml">
+      <m:properties>
+        <d:ID m:type="Edm.Int32">3</d:ID>
+        <d:ReleaseDate 
m:type="Edm.DateTime">2005-10-01T00:00:00</d:ReleaseDate>
+        <d:DiscontinuedDate 
m:type="Edm.DateTime">2006-10-01T00:00:00</d:DiscontinuedDate>
+        <d:Rating m:type="Edm.Int32">3</d:Rating>
+        <d:Price m:type="Edm.Decimal">19.9</d:Price>
+      </m:properties>
+    </content>
+  </entry>
+  <entry>
+    
<id>http://services.odata.org/(S(tcjpjrwvrq5cbwf1yqulu1hc))/V2/OData/OData.svc/Products(4)</id>
+    <title type="text">Fruit Punch</title>
+    <summary type="text">Mango flavor, 8.3 Ounce Cans (Pack of 24)</summary>
+    <updated>2017-04-07T05:44:22Z</updated>
+    <author>
+      <name />
+    </author>
+    <link rel="edit" title="Product" href="Products(4)" />
+    <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"; 
type="application/atom+xml;type=entry" title="Category" 
href="Products(4)/Category" />
+    <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"; 
type="application/atom+xml;type=entry" title="Supplier" 
href="Products(4)/Supplier">
+      <m:inline>
+        <entry m:etag="W/&quot;0&quot;">
+          
<id>http://services.odata.org/(S(tcjpjrwvrq5cbwf1yqulu1hc))/V2/OData/OData.svc/Suppliers(0)</id>
+          <title type="text">Exotic Liquids</title>
+          <updated>2017-04-07T05:44:22Z</updated>
+          <author>
+            <name />
+          </author>
+          <link rel="edit" title="Supplier" href="Suppliers(0)" />
+          <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"; 
type="application/atom+xml;type=feed" title="Products" 
href="Suppliers(0)/Products" />
+          <category term="ODataDemo.Supplier" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+          <content type="application/xml">
+            <m:properties>
+              <d:ID m:type="Edm.Int32">0</d:ID>
+              <d:Name>Exotic Liquids</d:Name>
+              <d:Concurrency m:type="Edm.Int32">0</d:Concurrency>
+              <d:Address m:type="ODataDemo.Address">
+                <d:Street>NE 228th</d:Street>
+                <d:City>Sammamish</d:City>
+                <d:State>WA</d:State>
+                <d:ZipCode>98074</d:ZipCode>
+                <d:Country>USA</d:Country>
+              </d:Address>
+            </m:properties>
+          </content>
+        </entry>
+      </m:inline>
+    </link>
+    <category term="ODataDemo.Product" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+    <content type="application/xml">
+      <m:properties>
+        <d:ID m:type="Edm.Int32">4</d:ID>
+        <d:ReleaseDate 
m:type="Edm.DateTime">2003-01-05T00:00:00</d:ReleaseDate>
+        <d:DiscontinuedDate m:type="Edm.DateTime" m:null="true" />
+        <d:Rating m:type="Edm.Int32">3</d:Rating>
+        <d:Price m:type="Edm.Decimal">22.99</d:Price>
+      </m:properties>
+    </content>
+  </entry>
+  <entry>
+    
<id>http://services.odata.org/(S(tcjpjrwvrq5cbwf1yqulu1hc))/V2/OData/OData.svc/Products(5)</id>
+    <title type="text">Cranberry Juice</title>
+    <summary type="text">16-Ounce Plastic Bottles (Pack of 12)</summary>
+    <updated>2017-04-07T05:44:22Z</updated>
+    <author>
+      <name />
+    </author>
+    <link rel="edit" title="Product" href="Products(5)" />
+    <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"; 
type="application/atom+xml;type=entry" title="Category" 
href="Products(5)/Category" />
+    <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"; 
type="application/atom+xml;type=entry" title="Supplier" 
href="Products(5)/Supplier">
+      <m:inline>
+        <entry m:etag="W/&quot;0&quot;">
+          
<id>http://services.odata.org/(S(tcjpjrwvrq5cbwf1yqulu1hc))/V2/OData/OData.svc/Suppliers(0)</id>
+          <title type="text">Exotic Liquids</title>
+          <updated>2017-04-07T05:44:22Z</updated>
+          <author>
+            <name />
+          </author>
+          <link rel="edit" title="Supplier" href="Suppliers(0)" />
+          <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"; 
type="application/atom+xml;type=feed" title="Products" 
href="Suppliers(0)/Products" />
+          <category term="ODataDemo.Supplier" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+          <content type="application/xml">
+            <m:properties>
+              <d:ID m:type="Edm.Int32">0</d:ID>
+              <d:Name>Exotic Liquids</d:Name>
+              <d:Concurrency m:type="Edm.Int32">0</d:Concurrency>
+              <d:Address m:type="ODataDemo.Address">
+                <d:Street>NE 228th</d:Street>
+                <d:City>Sammamish</d:City>
+                <d:State>WA</d:State>
+                <d:ZipCode>98074</d:ZipCode>
+                <d:Country>USA</d:Country>
+              </d:Address>
+            </m:properties>
+          </content>
+        </entry>
+      </m:inline>
+    </link>
+    <category term="ODataDemo.Product" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+    <content type="application/xml">
+      <m:properties>
+        <d:ID m:type="Edm.Int32">5</d:ID>
+        <d:ReleaseDate 
m:type="Edm.DateTime">2006-08-04T00:00:00</d:ReleaseDate>
+        <d:DiscontinuedDate m:type="Edm.DateTime" m:null="true" />
+        <d:Rating m:type="Edm.Int32">3</d:Rating>
+        <d:Price m:type="Edm.Decimal">22.8</d:Price>
+      </m:properties>
+    </content>
+  </entry>
+  <entry>
+    
<id>http://services.odata.org/(S(tcjpjrwvrq5cbwf1yqulu1hc))/V2/OData/OData.svc/Products(6)</id>
+    <title type="text">Pink Lemonade</title>
+    <summary type="text">36 Ounce Cans (Pack of 3)</summary>
+    <updated>2017-04-07T05:44:22Z</updated>
+    <author>
+      <name />
+    </author>
+    <link rel="edit" title="Product" href="Products(6)" />
+    <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"; 
type="application/atom+xml;type=entry" title="Category" 
href="Products(6)/Category" />
+    <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"; 
type="application/atom+xml;type=entry" title="Supplier" 
href="Products(6)/Supplier">
+      <m:inline>
+        <entry m:etag="W/&quot;0&quot;">
+          
<id>http://services.odata.org/(S(tcjpjrwvrq5cbwf1yqulu1hc))/V2/OData/OData.svc/Suppliers(0)</id>
+          <title type="text">Exotic Liquids</title>
+          <updated>2017-04-07T05:44:22Z</updated>
+          <author>
+            <name />
+          </author>
+          <link rel="edit" title="Supplier" href="Suppliers(0)" />
+          <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"; 
type="application/atom+xml;type=feed" title="Products" 
href="Suppliers(0)/Products" />
+          <category term="ODataDemo.Supplier" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+          <content type="application/xml">
+            <m:properties>
+              <d:ID m:type="Edm.Int32">0</d:ID>
+              <d:Name>Exotic Liquids</d:Name>
+              <d:Concurrency m:type="Edm.Int32">0</d:Concurrency>
+              <d:Address m:type="ODataDemo.Address">
+                <d:Street>NE 228th</d:Street>
+                <d:City>Sammamish</d:City>
+                <d:State>WA</d:State>
+                <d:ZipCode>98074</d:ZipCode>
+                <d:Country>USA</d:Country>
+              </d:Address>
+            </m:properties>
+          </content>
+        </entry>
+      </m:inline>
+    </link>
+    <category term="ODataDemo.Product" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+    <content type="application/xml">
+      <m:properties>
+        <d:ID m:type="Edm.Int32">6</d:ID>
+        <d:ReleaseDate 
m:type="Edm.DateTime">2006-11-05T00:00:00</d:ReleaseDate>
+        <d:DiscontinuedDate m:type="Edm.DateTime" m:null="true" />
+        <d:Rating m:type="Edm.Int32">3</d:Rating>
+        <d:Price m:type="Edm.Decimal">18.8</d:Price>
+      </m:properties>
+    </content>
+  </entry>
+  <entry>
+    
<id>http://services.odata.org/(S(tcjpjrwvrq5cbwf1yqulu1hc))/V2/OData/OData.svc/Products(7)</id>
+    <title type="text">DVD Player</title>
+    <summary type="text">1080P Upconversion DVD Player</summary>
+    <updated>2017-04-07T05:44:22Z</updated>
+    <author>
+      <name />
+    </author>
+    <link rel="edit" title="Product" href="Products(7)" />
+    <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"; 
type="application/atom+xml;type=entry" title="Category" 
href="Products(7)/Category" />
+    <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"; 
type="application/atom+xml;type=entry" title="Supplier" 
href="Products(7)/Supplier">
+      <m:inline>
+        <entry m:etag="W/&quot;0&quot;">
+          
<id>http://services.odata.org/(S(tcjpjrwvrq5cbwf1yqulu1hc))/V2/OData/OData.svc/Suppliers(1)</id>
+          <title type="text">Tokyo Traders</title>
+          <updated>2017-04-07T05:44:22Z</updated>
+          <author>
+            <name />
+          </author>
+          <link rel="edit" title="Supplier" href="Suppliers(1)" />
+          <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"; 
type="application/atom+xml;type=feed" title="Products" 
href="Suppliers(1)/Products" />
+          <category term="ODataDemo.Supplier" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+          <content type="application/xml">
+            <m:properties>
+              <d:ID m:type="Edm.Int32">1</d:ID>
+              <d:Name>Tokyo Traders</d:Name>
+              <d:Concurrency m:type="Edm.Int32">0</d:Concurrency>
+              <d:Address m:type="ODataDemo.Address">
+                <d:Street>NE 40th</d:Street>
+                <d:City>Redmond</d:City>
+                <d:State>WA</d:State>
+                <d:ZipCode>98052</d:ZipCode>
+                <d:Country>USA</d:Country>
+              </d:Address>
+            </m:properties>
+          </content>
+        </entry>
+      </m:inline>
+    </link>
+    <category term="ODataDemo.Product" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+    <content type="application/xml">
+      <m:properties>
+        <d:ID m:type="Edm.Int32">7</d:ID>
+        <d:ReleaseDate 
m:type="Edm.DateTime">2006-11-15T00:00:00</d:ReleaseDate>
+        <d:DiscontinuedDate m:type="Edm.DateTime" m:null="true" />
+        <d:Rating m:type="Edm.Int32">3</d:Rating>
+        <d:Price m:type="Edm.Decimal">35.88</d:Price>
+      </m:properties>
+    </content>
+  </entry>
+  <entry>
+    
<id>http://services.odata.org/(S(tcjpjrwvrq5cbwf1yqulu1hc))/V2/OData/OData.svc/Products(8)</id>
+    <title type="text">LCD HDTV</title>
+    <summary type="text">42 inch 1080p LCD with Built-in Blu-ray Disc 
Player</summary>
+    <updated>2017-04-07T05:44:22Z</updated>
+    <author>
+      <name />
+    </author>
+    <link rel="edit" title="Product" href="Products(8)" />
+    <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Category"; 
type="application/atom+xml;type=entry" title="Category" 
href="Products(8)/Category" />
+    <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Supplier"; 
type="application/atom+xml;type=entry" title="Supplier" 
href="Products(8)/Supplier">
+      <m:inline>
+        <entry m:etag="W/&quot;0&quot;">
+          
<id>http://services.odata.org/(S(tcjpjrwvrq5cbwf1yqulu1hc))/V2/OData/OData.svc/Suppliers(1)</id>
+          <title type="text">Tokyo Traders</title>
+          <updated>2017-04-07T05:44:22Z</updated>
+          <author>
+            <name />
+          </author>
+          <link rel="edit" title="Supplier" href="Suppliers(1)" />
+          <link 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Products"; 
type="application/atom+xml;type=feed" title="Products" 
href="Suppliers(1)/Products" />
+          <category term="ODataDemo.Supplier" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+          <content type="application/xml">
+            <m:properties>
+              <d:ID m:type="Edm.Int32">1</d:ID>
+              <d:Name>Tokyo Traders</d:Name>
+              <d:Concurrency m:type="Edm.Int32">0</d:Concurrency>
+              <d:Address m:type="ODataDemo.Address">
+                <d:Street>NE 40th</d:Street>
+                <d:City>Redmond</d:City>
+                <d:State>WA</d:State>
+                <d:ZipCode>98052</d:ZipCode>
+                <d:Country>USA</d:Country>
+              </d:Address>
+            </m:properties>
+          </content>
+        </entry>
+      </m:inline>
+    </link>
+    <category term="ODataDemo.Product" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+    <content type="application/xml">
+      <m:properties>
+        <d:ID m:type="Edm.Int32">8</d:ID>
+        <d:ReleaseDate 
m:type="Edm.DateTime">2008-05-08T00:00:00</d:ReleaseDate>
+        <d:DiscontinuedDate m:type="Edm.DateTime" m:null="true" />
+        <d:Rating m:type="Edm.Int32">3</d:Rating>
+        <d:Price m:type="Edm.Decimal">1088.8</d:Price>
+      </m:properties>
+    </content>
+  </entry>
+</feed>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/4261deb7/odata2-lib/odata-client-core/src/test/resources/RoomContentOnly.xml
----------------------------------------------------------------------
diff --git 
a/odata2-lib/odata-client-core/src/test/resources/RoomContentOnly.xml 
b/odata2-lib/odata-client-core/src/test/resources/RoomContentOnly.xml
new file mode 100644
index 0000000..558e713
--- /dev/null
+++ b/odata2-lib/odata-client-core/src/test/resources/RoomContentOnly.xml
@@ -0,0 +1,28 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+         or more contributor license agreements.  See the NOTICE file
+         distributed with this work for additional information
+         regarding copyright ownership.  The ASF licenses this file
+         to you under the Apache License, Version 2.0 (the
+         "License"); you may not use this file except in compliance
+         with the License.  You may obtain a copy of the License at
+  
+           http://www.apache.org/licenses/LICENSE-2.0
+  
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+         under the License.
+-->
+<entry xmlns="http://www.w3.org/2005/Atom"; 
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"; 
xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"; 
xml:base="http://host:8080/ReferenceScenario.svc/"; m:etag="W/&quot;1&quot;">
+       <content type="application/xml">
+               <m:properties>
+                       <d:Id>1</d:Id>
+                       <d:Name>Room 1</d:Name>
+                       <d:Seats>1</d:Seats>
+                       <d:Version>1</d:Version>
+               </m:properties>
+       </content>
+</entry>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/4261deb7/odata2-lib/odata-client-core/src/test/resources/RoomContentOnlyWithNavigationLink.xml
----------------------------------------------------------------------
diff --git 
a/odata2-lib/odata-client-core/src/test/resources/RoomContentOnlyWithNavigationLink.xml
 
b/odata2-lib/odata-client-core/src/test/resources/RoomContentOnlyWithNavigationLink.xml
new file mode 100644
index 0000000..a7d039e
--- /dev/null
+++ 
b/odata2-lib/odata-client-core/src/test/resources/RoomContentOnlyWithNavigationLink.xml
@@ -0,0 +1,29 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+         or more contributor license agreements.  See the NOTICE file
+         distributed with this work for additional information
+         regarding copyright ownership.  The ASF licenses this file
+         to you under the Apache License, Version 2.0 (the
+         "License"); you may not use this file except in compliance
+         with the License.  You may obtain a copy of the License at
+  
+           http://www.apache.org/licenses/LICENSE-2.0
+  
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+         under the License.
+-->
+<entry xmlns="http://www.w3.org/2005/Atom"; 
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"; 
xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"; 
xml:base="http://host:8080/ReferenceScenario.svc/"; m:etag="W/&quot;1&quot;">
+       <link href="Buildings('1')" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/nr_Building"; 
title="nr_Building" type="application/atom+xml;type=entry"/>
+       <content type="application/xml">
+               <m:properties>
+                       <d:Id>1</d:Id>
+                       <d:Name>Room 1</d:Name>
+                       <d:Seats>1</d:Seats>
+                       <d:Version>1</d:Version>
+               </m:properties>
+       </content>
+</entry>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/4261deb7/odata2-lib/odata-client-core/src/test/resources/RoomsToEmployeesWithInlineTeams.xml
----------------------------------------------------------------------
diff --git 
a/odata2-lib/odata-client-core/src/test/resources/RoomsToEmployeesWithInlineTeams.xml
 
b/odata2-lib/odata-client-core/src/test/resources/RoomsToEmployeesWithInlineTeams.xml
new file mode 100644
index 0000000..898ce9e
--- /dev/null
+++ 
b/odata2-lib/odata-client-core/src/test/resources/RoomsToEmployeesWithInlineTeams.xml
@@ -0,0 +1,104 @@
+<?xml version='1.0' encoding='utf-8'?>
+<feed xmlns="http://www.w3.org/2005/Atom"; 
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"; 
xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"; 
xml:base="http://localhost:8083/olingo-odata2-ref-web/ReferenceScenario.svc/";>
+       
<id>http://localhost:8083/olingo-odata2-ref-web/ReferenceScenario.svc/Employees</id>
+       <title type="text">Employees</title>
+       <updated>2016-11-22T14:21:03.492+05:30</updated>
+       <author>
+               <name/>
+       </author>
+       <link href="Employees" rel="self" title="Employees"/>
+       <entry>
+               
<id>http://localhost:8083/olingo-odata2-ref-web/ReferenceScenario.svc/Employees('2')</id>
+               <title type="text">Frederic Fall</title>
+               <updated>2003-07-01T00:00:00Z</updated>
+               <category term="RefScenario.Employee" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
+               <link href="Employees('2')" rel="edit" title="Employee"/>
+               <link href="Employees('2')/$value" rel="edit-media" 
type="image/jpeg"/>
+               <link href="Employees('2')/ne_Manager" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager"; 
title="ne_Manager" type="application/atom+xml;type=entry"/>
+               <link href="Employees('2')/ne_Team" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team"; 
title="ne_Team" type="application/atom+xml;type=entry">
+                       <m:inline>
+                               <entry 
xml:base="http://localhost:8083/olingo-odata2-ref-web/ReferenceScenario.svc/";>
+                                       
<id>http://localhost:8083/olingo-odata2-ref-web/ReferenceScenario.svc/Teams('1')</id>
+                                       <title type="text">Team 1</title>
+                                       
<updated>2016-11-22T14:21:03.493+05:30</updated>
+                                       <category term="RefScenario.Team" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
+                                       <link href="Teams('1')" rel="edit" 
title="Team"/>
+                                       <link href="Teams('1')/nt_Employees" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/nt_Employees";
 title="nt_Employees" type="application/atom+xml;type=feed"/>
+                                       <content type="application/xml">
+                                               <m:properties>
+                                                       <d:Id>1</d:Id>
+                                                       <d:Name>Team 1</d:Name>
+                                                       
<d:isScrumTeam>false</d:isScrumTeam>
+                                               </m:properties>
+                                       </content>
+                               </entry>
+                       </m:inline>
+               </link>
+               <link href="Employees('2')/ne_Room" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room"; 
title="ne_Room" type="application/atom+xml;type=entry"/>
+               <content type="image/jpeg" src="Employees('2')/$value"/>
+               <m:properties>
+                       <d:EmployeeId>2</d:EmployeeId>
+                       <d:EmployeeName>Frederic Fall</d:EmployeeName>
+                       <d:ManagerId>1</d:ManagerId>
+                       <d:RoomId>2</d:RoomId>
+                       <d:TeamId>1</d:TeamId>
+                       <d:Location m:type="RefScenario.c_Location">
+                               <d:City m:type="RefScenario.c_City">
+                                       <d:PostalCode>69190</d:PostalCode>
+                                       <d:CityName>Walldorf</d:CityName>
+                               </d:City>
+                               <d:Country>Germany</d:Country>
+                       </d:Location>
+                       <d:Age>32</d:Age>
+                       <d:EntryDate>2003-07-01T00:00:00</d:EntryDate>
+                       <d:ImageUrl>Employees('2')/$value</d:ImageUrl>
+               </m:properties>
+       </entry>
+       <entry>
+               
<id>http://localhost:8083/olingo-odata2-ref-web/ReferenceScenario.svc/Employees('3')</id>
+               <title type="text">Jonathan Smith</title>
+               <updated>2016-11-22T14:21:03.493+05:30</updated>
+               <category term="RefScenario.Employee" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
+               <link href="Employees('3')" rel="edit" title="Employee"/>
+               <link href="Employees('3')/$value" rel="edit-media" 
type="image/jpeg"/>
+               <link href="Employees('3')/ne_Manager" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager"; 
title="ne_Manager" type="application/atom+xml;type=entry"/>
+               <link href="Employees('3')/ne_Team" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team"; 
title="ne_Team" type="application/atom+xml;type=entry">
+                       <m:inline>
+                               <entry 
xml:base="http://localhost:8083/olingo-odata2-ref-web/ReferenceScenario.svc/";>
+                                       
<id>http://localhost:8083/olingo-odata2-ref-web/ReferenceScenario.svc/Teams('1')</id>
+                                       <title type="text">Team 1</title>
+                                       
<updated>2016-11-22T14:21:03.494+05:30</updated>
+                                       <category term="RefScenario.Team" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
+                                       <link href="Teams('1')" rel="edit" 
title="Team"/>
+                                       <link href="Teams('1')/nt_Employees" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/nt_Employees";
 title="nt_Employees" type="application/atom+xml;type=feed"/>
+                                       <content type="application/xml">
+                                               <m:properties>
+                                                       <d:Id>1</d:Id>
+                                                       <d:Name>Team 1</d:Name>
+                                                       
<d:isScrumTeam>false</d:isScrumTeam>
+                                               </m:properties>
+                                       </content>
+                               </entry>
+                       </m:inline>
+               </link>
+               <link href="Employees('3')/ne_Room" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room"; 
title="ne_Room" type="application/atom+xml;type=entry"/>
+               <content type="image/jpeg" src="Employees('3')/$value"/>
+               <m:properties>
+                       <d:EmployeeId>3</d:EmployeeId>
+                       <d:EmployeeName>Jonathan Smith</d:EmployeeName>
+                       <d:ManagerId>1</d:ManagerId>
+                       <d:RoomId>2</d:RoomId>
+                       <d:TeamId>1</d:TeamId>
+                       <d:Location m:type="RefScenario.c_Location">
+                               <d:City m:type="RefScenario.c_City">
+                                       <d:PostalCode>69190</d:PostalCode>
+                                       <d:CityName>Walldorf</d:CityName>
+                               </d:City>
+                               <d:Country>Germany</d:Country>
+                       </d:Location>
+                       <d:Age>56</d:Age>
+                       <d:EntryDate m:null="true"/>
+                       <d:ImageUrl>Employees('3')/$value</d:ImageUrl>
+               </m:properties>
+       </entry>
+</feed>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/4261deb7/odata2-lib/odata-client-core/src/test/resources/batchWithPost.batch
----------------------------------------------------------------------
diff --git 
a/odata2-lib/odata-client-core/src/test/resources/batchWithPost.batch 
b/odata2-lib/odata-client-core/src/test/resources/batchWithPost.batch
new file mode 100644
index 0000000..b7038e9
--- /dev/null
+++ b/odata2-lib/odata-client-core/src/test/resources/batchWithPost.batch
@@ -0,0 +1,39 @@
+--batch_8194-cf13-1f56
+Content-Type: application/http
+Content-Transfer-Encoding: binary
+
+GET http://localhost/odata/Employees('2')/EmployeeName?$format=json HTTP/1.1
+Accept: application/atomsvc+xml;q=0.8, application/json;odata=verbose;q=0.5, 
*/*;q=0.1
+Accept-Language:en-US,en;q=0.7,en-UK;q=0.9
+MaxDataServiceVersion: 2.0
+
+
+--batch_8194-cf13-1f56
+Content-Type: multipart/mixed; boundary=changeset_f980-1cb6-94dd
+
+--changeset_f980-1cb6-94dd
+Content-Type: application/http
+Content-Transfer-Encoding: binary
+Content-ID: changeRequest1
+
+PUT Employees('2')/EmployeeName HTTP/1.1
+Content-Length: 100000
+Accept: application/atomsvc+xml;q=0.8, application/json;odata=verbose;q=0.5, 
*/*;q=0.1
+DataServiceVersion: 1.0
+Content-Type: application/json;odata=verbose
+MaxDataServiceVersion: 2.0
+
+{"EmployeeName":"Frederic Fall MODIFIED"}
+
+--changeset_f980-1cb6-94dd--
+
+--batch_8194-cf13-1f56
+Content-Type: application/http
+Content-Transfer-Encoding: binary
+
+GET Employees('2')/EmployeeName?$format=json HTTP/1.1
+Accept: application/atomsvc+xml;q=0.8, application/json;odata=verbose;q=0.5, 
*/*;q=0.1
+MaxDataServiceVersion: 2.0
+
+
+--batch_8194-cf13-1f56--

http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/4261deb7/odata2-lib/odata-client-core/src/test/resources/double_expanded_team.xml
----------------------------------------------------------------------
diff --git 
a/odata2-lib/odata-client-core/src/test/resources/double_expanded_team.xml 
b/odata2-lib/odata-client-core/src/test/resources/double_expanded_team.xml
new file mode 100644
index 0000000..7a82144
--- /dev/null
+++ b/odata2-lib/odata-client-core/src/test/resources/double_expanded_team.xml
@@ -0,0 +1,264 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+         or more contributor license agreements.  See the NOTICE file
+         distributed with this work for additional information
+         regarding copyright ownership.  The ASF licenses this file
+         to you under the Apache License, Version 2.0 (the
+         "License"); you may not use this file except in compliance
+         with the License.  You may obtain a copy of the License at
+  
+           http://www.apache.org/licenses/LICENSE-2.0
+  
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+         under the License.
+-->
+<entry xml:base="http://some.host.com/service.root/";
+       xmlns="http://www.w3.org/2005/Atom";
+       xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata";
+       xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices";>
+       <id>http://some.host.com/service.root/Teams('1')</id>
+       <title type="text">Team 1</title>
+       <updated>2013-03-21T12:44:28Z</updated>
+       <category term="RefScenario.Team"
+               
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+       <link href="Teams('1')" rel="edit" title="Team" />
+       <link href="Teams('1')/nt_Employees"
+               
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/nt_Employees";
+               type="application/atom+xml;type=feed" title="nt_Employees">
+               <m:inline>
+                       <feed xml:base="http://some.host.com/service.root/";>
+                               
<id>http://some.host.com/service.root/Employees</id>
+                               <title type="text">Employees</title>
+                               <updated>2013-03-21T12:44:28Z</updated>
+                               <author>
+                                       <name />
+                               </author>
+                               <link href="Employees" rel="self" 
title="Employees" />
+                               <entry>
+                                       
<id>http://some.host.com/service.root/Employees('1')
+                                       </id>
+                                       <title type="text">Walter Winter</title>
+                                       <updated>1999-01-01T00:00:00Z</updated>
+                                       <category term="RefScenario.Employee"
+                                               
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+                                       <link href="Employees('1')" rel="edit" 
title="Employee" />
+                                       <link href="Employees('1')/$value" 
rel="edit-media" type="image/jpeg" />
+                                       <link href="Employees('1')/ne_Manager"
+                                               
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager";
+                                               
type="application/atom+xml;type=entry" title="ne_Manager" />
+                                       <link href="Employees('1')/ne_Team"
+                                               
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team";
+                                               
type="application/atom+xml;type=entry" title="ne_Team">
+                                               <m:inline>
+                                                       <entry 
xml:base="http://some.host.com/service.root/";>
+                                                               
<id>http://some.host.com/service.root/Teams('1')
+                                                               </id>
+                                                               <title 
type="text">Team 1</title>
+                                                               
<updated>2013-03-21T12:44:28Z</updated>
+                                                               <category 
term="RefScenario.Team"
+                                                                       
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+                                                               <link 
href="Teams('1')" rel="edit" title="Team" />
+                                                               <link 
href="Teams('1')/nt_Employees"
+                                                                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/nt_Employees";
+                                                                       
type="application/atom+xml;type=feed" title="nt_Employees" />
+                                                               <link 
href="Teams('1')/$links/nt_Employees"
+                                                                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/nt_Employees";
+                                                                       
type="application/xml" title="nt_Employees" />
+                                                               <content 
type="application/xml">
+                                                                       
<m:properties>
+                                                                               
<d:Id>1</d:Id>
+                                                                               
<d:Name>Team 1</d:Name>
+                                                                               
<d:isScrumTeam>false</d:isScrumTeam>
+                                                                       
</m:properties>
+                                                               </content>
+                                                       </entry>
+                                               </m:inline>
+                                       </link>
+                                       <link href="Employees('1')/ne_Room"
+                                               
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room";
+                                               
type="application/atom+xml;type=entry" title="ne_Room" />
+                                       <link 
href="Employees('1')/$links/ne_Manager"
+                                               
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ne_Manager";
+                                               type="application/xml" 
title="ne_Manager" />
+                                       <link 
href="Employees('1')/$links/ne_Team"
+                                               
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ne_Team";
+                                               type="application/xml" 
title="ne_Team" />
+                                       <link 
href="Employees('1')/$links/ne_Room"
+                                               
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ne_Room";
+                                               type="application/xml" 
title="ne_Room" />
+                                       <content type="image/jpeg" 
src="Employees('1')/$value" />
+                                       <m:properties>
+                                               <d:EmployeeId>1</d:EmployeeId>
+                                               <d:EmployeeName>Walter 
Winter</d:EmployeeName>
+                                               <d:ManagerId>1</d:ManagerId>
+                                               <d:RoomId>1</d:RoomId>
+                                               <d:TeamId>1</d:TeamId>
+                                               <d:Location 
m:type="RefScenario.c_Location">
+                                                       <d:City 
m:type="RefScenario.c_City">
+                                                               
<d:PostalCode>69124</d:PostalCode>
+                                                               
<d:CityName>Heidelberg</d:CityName>
+                                                       </d:City>
+                                                       
<d:Country>Germany</d:Country>
+                                               </d:Location>
+                                               <d:Age>52</d:Age>
+                                               
<d:EntryDate>1999-01-01T00:00:00</d:EntryDate>
+                                               
<d:ImageUrl>Employees('1')/$value</d:ImageUrl>
+                                       </m:properties>
+                               </entry>
+                               <entry>
+                                       
<id>http://some.host.com/service.root/Employees('2')</id>
+                                       <title type="text">Frederic Fall</title>
+                                       <updated>2003-07-01T00:00:00Z</updated>
+                                       <category term="RefScenario.Employee"
+                                               
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+                                       <link href="Employees('2')" rel="edit" 
title="Employee" />
+                                       <link href="Employees('2')/$value" 
rel="edit-media" type="image/jpeg" />
+                                       <link href="Employees('2')/ne_Manager"
+                                               
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager";
+                                               
type="application/atom+xml;type=entry" title="ne_Manager" />
+                                       <link href="Employees('2')/ne_Team"
+                                               
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team";
+                                               
type="application/atom+xml;type=entry" title="ne_Team">
+                                               <m:inline>
+                                                       <entry 
xml:base="http://some.host.com/service.root/";>
+                                                               
<id>http://some.host.com/service.root/Teams('1')</id>
+                                                               <title 
type="text">Team 1</title>
+                                                               
<updated>2013-03-21T12:44:28Z</updated>
+                                                               <category 
term="RefScenario.Team"
+                                                                       
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+                                                               <link 
href="Teams('1')" rel="edit" title="Team" />
+                                                               <link 
href="Teams('1')/nt_Employees"
+                                                                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/nt_Employees";
+                                                                       
type="application/atom+xml;type=feed" title="nt_Employees" />
+                                                               <link 
href="Teams('1')/$links/nt_Employees"
+                                                                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/nt_Employees";
+                                                                       
type="application/xml" title="nt_Employees" />
+                                                               <content 
type="application/xml">
+                                                                       
<m:properties>
+                                                                               
<d:Id>1</d:Id>
+                                                                               
<d:Name>Team 1</d:Name>
+                                                                               
<d:isScrumTeam>false</d:isScrumTeam>
+                                                                       
</m:properties>
+                                                               </content>
+                                                       </entry>
+                                               </m:inline>
+                                       </link>
+                                       <link href="Employees('2')/ne_Room"
+                                               
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room";
+                                               
type="application/atom+xml;type=entry" title="ne_Room" />
+                                       <link 
href="Employees('2')/$links/ne_Manager"
+                                               
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ne_Manager";
+                                               type="application/xml" 
title="ne_Manager" />
+                                       <link 
href="Employees('2')/$links/ne_Team"
+                                               
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ne_Team";
+                                               type="application/xml" 
title="ne_Team" />
+                                       <link 
href="Employees('2')/$links/ne_Room"
+                                               
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ne_Room";
+                                               type="application/xml" 
title="ne_Room" />
+                                       <content type="image/jpeg" 
src="Employees('2')/$value" />
+                                       <m:properties>
+                                               <d:EmployeeId>2</d:EmployeeId>
+                                               <d:EmployeeName>Frederic 
Fall</d:EmployeeName>
+                                               <d:ManagerId>1</d:ManagerId>
+                                               <d:RoomId>2</d:RoomId>
+                                               <d:TeamId>1</d:TeamId>
+                                               <d:Location 
m:type="RefScenario.c_Location">
+                                                       <d:City 
m:type="RefScenario.c_City">
+                                                               
<d:PostalCode>69190</d:PostalCode>
+                                                               
<d:CityName>Walldorf</d:CityName>
+                                                       </d:City>
+                                                       
<d:Country>Germany</d:Country>
+                                               </d:Location>
+                                               <d:Age>32</d:Age>
+                                               
<d:EntryDate>2003-07-01T00:00:00</d:EntryDate>
+                                               
<d:ImageUrl>Employees('2')/$value</d:ImageUrl>
+                                       </m:properties>
+                               </entry>
+                               <entry>
+                                       
<id>http://some.host.com/service.root/Employees('3')</id>
+                                       <title type="text">Jonathan 
Smith</title>
+                                       <updated>2013-03-21T12:44:28Z</updated>
+                                       <category term="RefScenario.Employee"
+                                               
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+                                       <link href="Employees('3')" rel="edit" 
title="Employee" />
+                                       <link href="Employees('3')/$value" 
rel="edit-media" type="image/jpeg" />
+                                       <link href="Employees('3')/ne_Manager"
+                                               
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager";
+                                               
type="application/atom+xml;type=entry" title="ne_Manager" />
+                                       <link href="Employees('3')/ne_Team"
+                                               
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team";
+                                               
type="application/atom+xml;type=entry" title="ne_Team">
+                                               <m:inline>
+                                                       <entry 
xml:base="http://some.host.com/service.root/";>
+                                                               
<id>http://some.host.com/service.root/Teams('1')</id>
+                                                               <title 
type="text">Team 1</title>
+                                                               
<updated>2013-03-21T12:44:28Z</updated>
+                                                               <category 
term="RefScenario.Team"
+                                                                       
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+                                                               <link 
href="Teams('1')" rel="edit" title="Team" />
+                                                               <link 
href="Teams('1')/nt_Employees"
+                                                                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/nt_Employees";
+                                                                       
type="application/atom+xml;type=feed" title="nt_Employees" />
+                                                               <link 
href="Teams('1')/$links/nt_Employees"
+                                                                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/nt_Employees";
+                                                                       
type="application/xml" title="nt_Employees" />
+                                                               <content 
type="application/xml">
+                                                                       
<m:properties>
+                                                                               
<d:Id>1</d:Id>
+                                                                               
<d:Name>Team 1</d:Name>
+                                                                               
<d:isScrumTeam>false</d:isScrumTeam>
+                                                                       
</m:properties>
+                                                               </content>
+                                                       </entry>
+                                               </m:inline>
+                                       </link>
+                                       <link href="Employees('3')/ne_Room"
+                                               
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room";
+                                               
type="application/atom+xml;type=entry" title="ne_Room" />
+                                       <link 
href="Employees('3')/$links/ne_Manager"
+                                               
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ne_Manager";
+                                               type="application/xml" 
title="ne_Manager" />
+                                       <link 
href="Employees('3')/$links/ne_Team"
+                                               
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ne_Team";
+                                               type="application/xml" 
title="ne_Team" />
+                                       <link 
href="Employees('3')/$links/ne_Room"
+                                               
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ne_Room";
+                                               type="application/xml" 
title="ne_Room" />
+                                       <content type="image/jpeg" 
src="Employees('3')/$value" />
+                                       <m:properties>
+                                               <d:EmployeeId>3</d:EmployeeId>
+                                               <d:EmployeeName>Jonathan 
Smith</d:EmployeeName>
+                                               <d:ManagerId>1</d:ManagerId>
+                                               <d:RoomId>2</d:RoomId>
+                                               <d:TeamId>1</d:TeamId>
+                                               <d:Location 
m:type="RefScenario.c_Location">
+                                                       <d:City 
m:type="RefScenario.c_City">
+                                                               
<d:PostalCode>69190</d:PostalCode>
+                                                               
<d:CityName>Walldorf</d:CityName>
+                                                       </d:City>
+                                                       
<d:Country>Germany</d:Country>
+                                               </d:Location>
+                                               <d:Age>56</d:Age>
+                                               <d:EntryDate m:null="true" />
+                                               
<d:ImageUrl>Employees('3')/$value</d:ImageUrl>
+                                       </m:properties>
+                               </entry>
+                       </feed>
+               </m:inline>
+       </link>
+       <link href="Teams('1')/$links/nt_Employees"
+               
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/nt_Employees";
+               type="application/xml" title="nt_Employees" />
+       <content type="application/xml">
+               <m:properties>
+                       <d:Id>1</d:Id>
+                       <d:Name>Team 1</d:Name>
+                       <d:isScrumTeam>false</d:isScrumTeam>
+               </m:properties>
+       </content>
+</entry>

http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/4261deb7/odata2-lib/odata-client-core/src/test/resources/expandedBuilding.xml
----------------------------------------------------------------------
diff --git 
a/odata2-lib/odata-client-core/src/test/resources/expandedBuilding.xml 
b/odata2-lib/odata-client-core/src/test/resources/expandedBuilding.xml
new file mode 100644
index 0000000..e637969
--- /dev/null
+++ b/odata2-lib/odata-client-core/src/test/resources/expandedBuilding.xml
@@ -0,0 +1,61 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements. See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership. The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License. You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied. See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+<entry xmlns="http://www.w3.org/2005/Atom"; 
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata";
+    xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"; 
xml:base="http://some.host.com/service.root/ReferenceScenario.svc/";>
+    <id>http://some.host.com/service.root/ReferenceScenario.svc/Rooms('1')</id>
+    <title type="text">Room 1</title>
+    <updated>2013-04-19T10:58:03.646Z</updated>
+    <category term="RefScenario.Room" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+    <link href="Rooms('1')" rel="edit" title="Room" />
+    <link href="Rooms('1')/nr_Employees" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/nr_Employees";
+        title="nr_Employees" type="application/atom+xml; type=feed" />
+    <link href="Rooms('1')/nr_Building" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/nr_Building";
+        title="nr_Building" type="application/atom+xml; type=entry">
+        <m:inline>
+            <entry>
+                
<id>http://some.host.com/service.root/ReferenceScenario.svc/Buildings('1')</id>
+                <title type="text">Buildings</title>
+                <updated>2013-04-19T10:58:03.646Z</updated>
+                <author>
+                    <name>Building 1</name>
+                </author>
+                <category term="RefScenario.Building" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+                <link href="Buildings('1')" rel="edit" title="Building" />
+                <link href="Buildings('1')/nb_Rooms" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/nb_Rooms";
+                    title="nb_Rooms" type="application/atom+xml; type=feed" />
+                <content type="application/xml">
+                    <m:properties>
+                        <d:Id>1</d:Id>
+                        <d:Name>Building 1</d:Name>
+                        <d:Image m:null="true" />
+                    </m:properties>
+                </content>
+            </entry>
+        </m:inline>
+    </link>
+    <content type="application/xml">
+        <m:properties>
+            <d:Id>1</d:Id>
+            <d:Name>Room 1</d:Name>
+            <d:Seats>1</d:Seats>
+            <d:Version>1</d:Version>
+        </m:properties>
+    </content>
+</entry>

http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/4261deb7/odata2-lib/odata-client-core/src/test/resources/expanded_team.xml
----------------------------------------------------------------------
diff --git a/odata2-lib/odata-client-core/src/test/resources/expanded_team.xml 
b/odata2-lib/odata-client-core/src/test/resources/expanded_team.xml
new file mode 100644
index 0000000..c18a78b
--- /dev/null
+++ b/odata2-lib/odata-client-core/src/test/resources/expanded_team.xml
@@ -0,0 +1,146 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+         or more contributor license agreements.  See the NOTICE file
+         distributed with this work for additional information
+         regarding copyright ownership.  The ASF licenses this file
+         to you under the Apache License, Version 2.0 (the
+         "License"); you may not use this file except in compliance
+         with the License.  You may obtain a copy of the License at
+  
+           http://www.apache.org/licenses/LICENSE-2.0
+  
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+         under the License.
+-->
+<entry xml:base="http://some.host.com/service.root/";
+       xmlns="http://www.w3.org/2005/Atom";
+       xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata";
+       xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices";>
+    <id>http://some.host.com/service.root/Teams('1')</id>
+    <title type="text">Team 1</title>
+    <updated>2013-03-14T11:16:48Z</updated>
+    <category term="RefScenario.Team" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
+    <link href="Teams('1')" rel="edit" title="Team"/>
+    <link href="Teams('1')/nt_Employees" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/nt_Employees";
 type="application/atom+xml;type=feed" title="nt_Employees">
+        <m:inline>
+            <feed xml:base="http://some.host.com/service.root/";>
+                <id>http://some.host.com/service.root/Employees</id>
+                <title type="text">Employees</title>
+                <updated>2013-03-14T11:16:48Z</updated>
+                <author>
+                    <name/>
+                </author>
+                <link href="Employees" rel="self" title="Employees"/>
+                <entry>
+                    <id>http://some.host.com/service.root/Employees('1')</id>
+                    <title type="text">Walter Winter</title>
+                    <updated>1999-01-01T00:00:00Z</updated>
+                    <category term="RefScenario.Employee" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
+                    <link href="Employees('1')" rel="edit" title="Employee"/>
+                    <link href="Employees('1')/$value" rel="edit-media" 
type="image/jpeg"/>
+                    <link href="Employees('1')/ne_Manager" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager"; 
type="application/atom+xml;type=entry" title="ne_Manager"/>
+                    <link href="Employees('1')/ne_Team" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team"; 
type="application/atom+xml;type=entry" title="ne_Team"/>
+                    <link href="Employees('1')/ne_Room" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room"; 
type="application/atom+xml;type=entry" title="ne_Room"/>
+                    <link href="Employees('1')/$links/ne_Manager" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ne_Manager";
 type="application/xml" title="ne_Manager"/>
+                    <link href="Employees('1')/$links/ne_Team" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ne_Team";
 type="application/xml" title="ne_Team"/>
+                    <link href="Employees('1')/$links/ne_Room" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ne_Room";
 type="application/xml" title="ne_Room"/>
+                    <content type="image/jpeg" src="Employees('1')/$value"/>
+                    <m:properties>
+                        <d:EmployeeId>1</d:EmployeeId>
+                        <d:EmployeeName>Walter Winter</d:EmployeeName>
+                        <d:ManagerId>1</d:ManagerId>
+                        <d:RoomId>1</d:RoomId>
+                        <d:TeamId>1</d:TeamId>
+                        <d:Location m:type="RefScenario.c_Location">
+                            <d:City m:type="RefScenario.c_City">
+                                <d:PostalCode>69124</d:PostalCode>
+                                <d:CityName>Heidelberg</d:CityName>
+                            </d:City>
+                            <d:Country>Germany</d:Country>
+                        </d:Location>
+                        <d:Age>52</d:Age>
+                        <d:EntryDate>1999-01-01T00:00:00</d:EntryDate>
+                        <d:ImageUrl>Employees('1')/$value</d:ImageUrl>
+                    </m:properties>
+                </entry>
+                <entry>
+                    <id>http://some.host.com/service.root/Employees('2')</id>
+                    <title type="text">Frederic Fall</title>
+                    <updated>2003-07-01T00:00:00Z</updated>
+                    <category term="RefScenario.Employee" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
+                    <link href="Employees('2')" rel="edit" title="Employee"/>
+                    <link href="Employees('2')/$value" rel="edit-media" 
type="image/jpeg"/>
+                    <link href="Employees('2')/ne_Manager" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager"; 
type="application/atom+xml;type=entry" title="ne_Manager"/>
+                    <link href="Employees('2')/ne_Team" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team"; 
type="application/atom+xml;type=entry" title="ne_Team"/>
+                    <link href="Employees('2')/ne_Room" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room"; 
type="application/atom+xml;type=entry" title="ne_Room"/>
+                    <link href="Employees('2')/$links/ne_Manager" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ne_Manager";
 type="application/xml" title="ne_Manager"/>
+                    <link href="Employees('2')/$links/ne_Team" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ne_Team";
 type="application/xml" title="ne_Team"/>
+                    <link href="Employees('2')/$links/ne_Room" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ne_Room";
 type="application/xml" title="ne_Room"/>
+                    <content type="image/jpeg" src="Employees('2')/$value"/>
+                    <m:properties>
+                        <d:EmployeeId>2</d:EmployeeId>
+                        <d:EmployeeName>Frederic Fall</d:EmployeeName>
+                        <d:ManagerId>1</d:ManagerId>
+                        <d:RoomId>2</d:RoomId>
+                        <d:TeamId>1</d:TeamId>
+                        <d:Location m:type="RefScenario.c_Location">
+                            <d:City m:type="RefScenario.c_City">
+                                <d:PostalCode>69190</d:PostalCode>
+                                <d:CityName>Walldorf</d:CityName>
+                            </d:City>
+                            <d:Country>Germany</d:Country>
+                        </d:Location>
+                        <d:Age>32</d:Age>
+                        <d:EntryDate>2003-07-01T00:00:00</d:EntryDate>
+                        <d:ImageUrl>Employees('2')/$value</d:ImageUrl>
+                    </m:properties>
+                </entry>
+                <entry>
+                    <id>http://some.host.com/service.root/Employees('3')</id>
+                    <title type="text">Jonathan Smith</title>
+                    <updated>2013-03-14T11:16:48Z</updated>
+                    <category term="RefScenario.Employee" 
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
+                    <link href="Employees('3')" rel="edit" title="Employee"/>
+                    <link href="Employees('3')/$value" rel="edit-media" 
type="image/jpeg"/>
+                    <link href="Employees('3')/ne_Manager" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager"; 
type="application/atom+xml;type=entry" title="ne_Manager"/>
+                    <link href="Employees('3')/ne_Team" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team"; 
type="application/atom+xml;type=entry" title="ne_Team"/>
+                    <link href="Employees('3')/ne_Room" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room"; 
type="application/atom+xml;type=entry" title="ne_Room"/>
+                    <link href="Employees('3')/$links/ne_Manager" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ne_Manager";
 type="application/xml" title="ne_Manager"/>
+                    <link href="Employees('3')/$links/ne_Team" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ne_Team";
 type="application/xml" title="ne_Team"/>
+                    <link href="Employees('3')/$links/ne_Room" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/ne_Room";
 type="application/xml" title="ne_Room"/>
+                    <content type="image/jpeg" src="Employees('3')/$value"/>
+                    <m:properties>
+                        <d:EmployeeId>3</d:EmployeeId>
+                        <d:EmployeeName>Jonathan Smith</d:EmployeeName>
+                        <d:ManagerId>1</d:ManagerId>
+                        <d:RoomId>2</d:RoomId>
+                        <d:TeamId>1</d:TeamId>
+                        <d:Location m:type="RefScenario.c_Location">
+                            <d:City m:type="RefScenario.c_City">
+                                <d:PostalCode>69190</d:PostalCode>
+                                <d:CityName>Walldorf</d:CityName>
+                            </d:City>
+                            <d:Country>Germany</d:Country>
+                        </d:Location>
+                        <d:Age>56</d:Age>
+                        <d:EntryDate m:null="true"/>
+                        <d:ImageUrl>Employees('3')/$value</d:ImageUrl>
+                    </m:properties>
+                </entry>
+            </feed>
+        </m:inline>
+    </link>
+    <link href="Teams('1')/$links/nt_Employees" 
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/relatedlinks/nt_Employees";
 type="application/xml" title="nt_Employees"/>
+    <content type="application/xml">
+        <m:properties>
+            <d:Id>1</d:Id>
+            <d:Name>Team 1</d:Name>
+            <d:isScrumTeam>false</d:isScrumTeam>
+        </m:properties>
+    </content>
+</entry>

http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/4261deb7/odata2-lib/odata-client-core/src/test/resources/feed_employees.xml
----------------------------------------------------------------------
diff --git a/odata2-lib/odata-client-core/src/test/resources/feed_employees.xml 
b/odata2-lib/odata-client-core/src/test/resources/feed_employees.xml
new file mode 100644
index 0000000..53e124f
--- /dev/null
+++ b/odata2-lib/odata-client-core/src/test/resources/feed_employees.xml
@@ -0,0 +1,247 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+         or more contributor license agreements.  See the NOTICE file
+         distributed with this work for additional information
+         regarding copyright ownership.  The ASF licenses this file
+         to you under the Apache License, Version 2.0 (the
+         "License"); you may not use this file except in compliance
+         with the License.  You may obtain a copy of the License at
+  
+           http://www.apache.org/licenses/LICENSE-2.0
+  
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+         under the License.
+-->
+<feed xmlns="http://www.w3.org/2005/Atom";
+       xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata";
+       xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices";
+       xml:base="http://some.host.com/service.root/ReferenceScenario.svc/";>
+       
<id>http://some.host.com/service.root/ReferenceScenario.svc/Employees</id>
+       <title type="text">Employees</title>
+       <updated>2013-04-23T11:46:14.926Z</updated>
+       <author>
+               <name />
+       </author>
+       <link href="Employees" rel="self" title="Employees" />
+       <entry>
+               
<id>http://some.host.com/service.root/ReferenceScenario.svc/Employees('1')</id>
+               <title type="text">Walter Winter</title>
+               <updated>1999-01-01T00:00:00Z</updated>
+               <category term="RefScenario.Employee"
+                       
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+               <link href="Employees('1')" rel="edit" title="Employee" />
+               <link href="Employees('1')/$value" rel="edit-media" 
type="application/octet-stream" />
+               <link href="Employees('1')/ne_Manager"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager";
+                       title="ne_Manager" type="application/atom+xml; 
type=entry" />
+               <link href="Employees('1')/ne_Team"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team";
+                       title="ne_Team" type="application/atom+xml; type=entry" 
/>
+               <link href="Employees('1')/ne_Room"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room";
+                       title="ne_Room" type="application/atom+xml; type=entry" 
/>
+               <content type="application/octet-stream" 
src="Employees('1')/$value" />
+               <m:properties>
+                       <d:EmployeeId>1</d:EmployeeId>
+                       <d:EmployeeName>Walter Winter</d:EmployeeName>
+                       <d:ManagerId>1</d:ManagerId>
+                       <d:RoomId>1</d:RoomId>
+                       <d:TeamId>1</d:TeamId>
+                       <d:Location m:type="RefScenario.c_Location">
+                               <d:City m:type="RefScenario.c_City">
+                                       <d:PostalCode>69124</d:PostalCode>
+                                       <d:CityName>Heidelberg</d:CityName>
+                               </d:City>
+                               <d:Country>Germany</d:Country>
+                       </d:Location>
+                       <d:Age>52</d:Age>
+                       <d:EntryDate>1999-01-01T00:00:00</d:EntryDate>
+                       <d:ImageUrl>Employees('1')/$value</d:ImageUrl>
+               </m:properties>
+       </entry>
+       <entry>
+               
<id>http://some.host.com/service.root/ReferenceScenario.svc/Employees('2')</id>
+               <title type="text">Frederic Fall</title>
+               <updated>2003-07-01T00:00:00Z</updated>
+               <category term="RefScenario.Employee"
+                       
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+               <link href="Employees('2')" rel="edit" title="Employee" />
+               <link href="Employees('2')/$value" rel="edit-media" 
type="application/octet-stream" />
+               <link href="Employees('2')/ne_Manager"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager";
+                       title="ne_Manager" type="application/atom+xml; 
type=entry" />
+               <link href="Employees('2')/ne_Team"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team";
+                       title="ne_Team" type="application/atom+xml; type=entry" 
/>
+               <link href="Employees('2')/ne_Room"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room";
+                       title="ne_Room" type="application/atom+xml; type=entry" 
/>
+               <content type="application/octet-stream" 
src="Employees('2')/$value" />
+               <m:properties>
+                       <d:EmployeeId>2</d:EmployeeId>
+                       <d:EmployeeName>Frederic Fall</d:EmployeeName>
+                       <d:ManagerId>1</d:ManagerId>
+                       <d:RoomId>2</d:RoomId>
+                       <d:TeamId>1</d:TeamId>
+                       <d:Location m:type="RefScenario.c_Location">
+                               <d:City m:type="RefScenario.c_City">
+                                       <d:PostalCode>69190</d:PostalCode>
+                                       <d:CityName>Walldorf</d:CityName>
+                               </d:City>
+                               <d:Country>Germany</d:Country>
+                       </d:Location>
+                       <d:Age>32</d:Age>
+                       <d:EntryDate>2003-07-01T00:00:00</d:EntryDate>
+                       <d:ImageUrl>Employees('2')/$value</d:ImageUrl>
+               </m:properties>
+       </entry>
+       <entry>
+               
<id>http://some.host.com/service.root/ReferenceScenario.svc/Employees('3')</id>
+               <title type="text">Jonathan Smith</title>
+               <updated>2013-04-23T11:46:14.928Z</updated>
+               <category term="RefScenario.Employee"
+                       
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+               <link href="Employees('3')" rel="edit" title="Employee" />
+               <link href="Employees('3')/$value" rel="edit-media" 
type="application/octet-stream" />
+               <link href="Employees('3')/ne_Manager"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager";
+                       title="ne_Manager" type="application/atom+xml; 
type=entry" />
+               <link href="Employees('3')/ne_Team"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team";
+                       title="ne_Team" type="application/atom+xml; type=entry" 
/>
+               <link href="Employees('3')/ne_Room"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room";
+                       title="ne_Room" type="application/atom+xml; type=entry" 
/>
+               <content type="application/octet-stream" 
src="Employees('3')/$value" />
+               <m:properties>
+                       <d:EmployeeId>3</d:EmployeeId>
+                       <d:EmployeeName>Jonathan Smith</d:EmployeeName>
+                       <d:ManagerId>1</d:ManagerId>
+                       <d:RoomId>2</d:RoomId>
+                       <d:TeamId>1</d:TeamId>
+                       <d:Location m:type="RefScenario.c_Location">
+                               <d:City m:type="RefScenario.c_City">
+                                       <d:PostalCode>69190</d:PostalCode>
+                                       <d:CityName>Walldorf</d:CityName>
+                               </d:City>
+                               <d:Country>Germany</d:Country>
+                       </d:Location>
+                       <d:Age>56</d:Age>
+                       <d:EntryDate m:null="true" />
+                       <d:ImageUrl>Employees('3')/$value</d:ImageUrl>
+               </m:properties>
+       </entry>
+       <entry>
+               
<id>http://some.host.com/service.root/ReferenceScenario.svc/Employees('4')</id>
+               <title type="text">Peter Burke</title>
+               <updated>2004-09-12T00:00:00Z</updated>
+               <category term="RefScenario.Employee"
+                       
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+               <link href="Employees('4')" rel="edit" title="Employee" />
+               <link href="Employees('4')/$value" rel="edit-media" 
type="application/octet-stream" />
+               <link href="Employees('4')/ne_Manager"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager";
+                       title="ne_Manager" type="application/atom+xml; 
type=entry" />
+               <link href="Employees('4')/ne_Team"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team";
+                       title="ne_Team" type="application/atom+xml; type=entry" 
/>
+               <link href="Employees('4')/ne_Room"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room";
+                       title="ne_Room" type="application/atom+xml; type=entry" 
/>
+               <content type="application/octet-stream" 
src="Employees('4')/$value" />
+               <m:properties>
+                       <d:EmployeeId>4</d:EmployeeId>
+                       <d:EmployeeName>Peter Burke</d:EmployeeName>
+                       <d:ManagerId>3</d:ManagerId>
+                       <d:RoomId>2</d:RoomId>
+                       <d:TeamId>2</d:TeamId>
+                       <d:Location m:type="RefScenario.c_Location">
+                               <d:City m:type="RefScenario.c_City">
+                                       <d:PostalCode>69190</d:PostalCode>
+                                       <d:CityName>Walldorf</d:CityName>
+                               </d:City>
+                               <d:Country>Germany</d:Country>
+                       </d:Location>
+                       <d:Age>39</d:Age>
+                       <d:EntryDate>2004-09-12T00:00:00</d:EntryDate>
+                       <d:ImageUrl>Employees('4')/$value</d:ImageUrl>
+               </m:properties>
+       </entry>
+       <entry>
+               
<id>http://some.host.com/service.root/ReferenceScenario.svc/Employees('5')</id>
+               <title type="text">John Field</title>
+               <updated>2001-02-01T00:00:00Z</updated>
+               <category term="RefScenario.Employee"
+                       
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+               <link href="Employees('5')" rel="edit" title="Employee" />
+               <link href="Employees('5')/$value" rel="edit-media" 
type="application/octet-stream" />
+               <link href="Employees('5')/ne_Manager"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager";
+                       title="ne_Manager" type="application/atom+xml; 
type=entry" />
+               <link href="Employees('5')/ne_Team"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team";
+                       title="ne_Team" type="application/atom+xml; type=entry" 
/>
+               <link href="Employees('5')/ne_Room"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room";
+                       title="ne_Room" type="application/atom+xml; type=entry" 
/>
+               <content type="application/octet-stream" 
src="Employees('5')/$value" />
+               <m:properties>
+                       <d:EmployeeId>5</d:EmployeeId>
+                       <d:EmployeeName>John Field</d:EmployeeName>
+                       <d:ManagerId>3</d:ManagerId>
+                       <d:RoomId>3</d:RoomId>
+                       <d:TeamId>2</d:TeamId>
+                       <d:Location m:type="RefScenario.c_Location">
+                               <d:City m:type="RefScenario.c_City">
+                                       <d:PostalCode>69190</d:PostalCode>
+                                       <d:CityName>Walldorf</d:CityName>
+                               </d:City>
+                               <d:Country>Germany</d:Country>
+                       </d:Location>
+                       <d:Age>42</d:Age>
+                       <d:EntryDate>2001-02-01T00:00:00</d:EntryDate>
+                       <d:ImageUrl>Employees('5')/$value</d:ImageUrl>
+               </m:properties>
+       </entry>
+       <entry>
+               
<id>http://some.host.com/service.root/ReferenceScenario.svc/Employees('6')</id>
+               <title type="text">Susan Bay</title>
+               <updated>2010-12-01T00:00:00Z</updated>
+               <category term="RefScenario.Employee"
+                       
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+               <link href="Employees('6')" rel="edit" title="Employee" />
+               <link href="Employees('6')/$value" rel="edit-media" 
type="application/octet-stream" />
+               <link href="Employees('6')/ne_Manager"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager";
+                       title="ne_Manager" type="application/atom+xml; 
type=entry" />
+               <link href="Employees('6')/ne_Team"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team";
+                       title="ne_Team" type="application/atom+xml; type=entry" 
/>
+               <link href="Employees('6')/ne_Room"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room";
+                       title="ne_Room" type="application/atom+xml; type=entry" 
/>
+               <content type="application/octet-stream" 
src="Employees('6')/$value" />
+               <m:properties>
+                       <d:EmployeeId>6</d:EmployeeId>
+                       <d:EmployeeName>Susan Bay</d:EmployeeName>
+                       <d:ManagerId>1</d:ManagerId>
+                       <d:RoomId>2</d:RoomId>
+                       <d:TeamId>3</d:TeamId>
+                       <d:Location m:type="RefScenario.c_Location">
+                               <d:City m:type="RefScenario.c_City">
+                                       <d:PostalCode>69190</d:PostalCode>
+                                       <d:CityName>Walldorf</d:CityName>
+                               </d:City>
+                               <d:Country>Germany</d:Country>
+                       </d:Location>
+                       <d:Age>29</d:Age>
+                       <d:EntryDate>2010-12-01T00:00:00</d:EntryDate>
+                       <d:ImageUrl>Employees('6')/$value</d:ImageUrl>
+               </m:properties>
+       </entry>
+</feed>

http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/4261deb7/odata2-lib/odata-client-core/src/test/resources/feed_employees_full.xml
----------------------------------------------------------------------
diff --git 
a/odata2-lib/odata-client-core/src/test/resources/feed_employees_full.xml 
b/odata2-lib/odata-client-core/src/test/resources/feed_employees_full.xml
new file mode 100644
index 0000000..fc78f99
--- /dev/null
+++ b/odata2-lib/odata-client-core/src/test/resources/feed_employees_full.xml
@@ -0,0 +1,249 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+         or more contributor license agreements.  See the NOTICE file
+         distributed with this work for additional information
+         regarding copyright ownership.  The ASF licenses this file
+         to you under the Apache License, Version 2.0 (the
+         "License"); you may not use this file except in compliance
+         with the License.  You may obtain a copy of the License at
+  
+           http://www.apache.org/licenses/LICENSE-2.0
+  
+         Unless required by applicable law or agreed to in writing,
+         software distributed under the License is distributed on an
+         "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+         KIND, either express or implied.  See the License for the
+         specific language governing permissions and limitations
+         under the License.
+-->
+<feed xmlns="http://www.w3.org/2005/Atom";
+       xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata";
+       xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices";
+       xml:base="http://some.host.com/service.root/ReferenceScenario.svc/";>
+       
<id>http://some.host.com/service.root/ReferenceScenario.svc/Employees</id>
+       <title type="text">Employees</title>
+       <updated>2013-04-23T11:46:14.926Z</updated>
+       <author>
+               <name />
+       </author>
+    <m:count>6</m:count>
+       <link href="Employees" rel="self" title="Employees" />
+    <link href="http://thisisanextlink"; rel="next"/>
+       <entry>
+               
<id>http://some.host.com/service.root/ReferenceScenario.svc/Employees('1')</id>
+               <title type="text">Walter Winter</title>
+               <updated>1999-01-01T00:00:00Z</updated>
+               <category term="RefScenario.Employee"
+                       
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+               <link href="Employees('1')" rel="edit" title="Employee" />
+               <link href="Employees('1')/$value" rel="edit-media" 
type="application/octet-stream" />
+               <link href="Employees('1')/ne_Manager"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager";
+                       title="ne_Manager" type="application/atom+xml; 
type=entry" />
+               <link href="Employees('1')/ne_Team"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team";
+                       title="ne_Team" type="application/atom+xml; type=entry" 
/>
+               <link href="Employees('1')/ne_Room"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room";
+                       title="ne_Room" type="application/atom+xml; type=entry" 
/>
+               <content type="application/octet-stream" 
src="Employees('1')/$value" />
+               <m:properties>
+                       <d:EmployeeId>1</d:EmployeeId>
+                       <d:EmployeeName>Walter Winter</d:EmployeeName>
+                       <d:ManagerId>1</d:ManagerId>
+                       <d:RoomId>1</d:RoomId>
+                       <d:TeamId>1</d:TeamId>
+                       <d:Location m:type="RefScenario.c_Location">
+                               <d:City m:type="RefScenario.c_City">
+                                       <d:PostalCode>69124</d:PostalCode>
+                                       <d:CityName>Heidelberg</d:CityName>
+                               </d:City>
+                               <d:Country>Germany</d:Country>
+                       </d:Location>
+                       <d:Age>52</d:Age>
+                       <d:EntryDate>1999-01-01T00:00:00</d:EntryDate>
+                       <d:ImageUrl>Employees('1')/$value</d:ImageUrl>
+               </m:properties>
+       </entry>
+       <entry>
+               
<id>http://some.host.com/service.root/ReferenceScenario.svc/Employees('2')</id>
+               <title type="text">Frederic Fall</title>
+               <updated>2003-07-01T00:00:00Z</updated>
+               <category term="RefScenario.Employee"
+                       
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+               <link href="Employees('2')" rel="edit" title="Employee" />
+               <link href="Employees('2')/$value" rel="edit-media" 
type="application/octet-stream" />
+               <link href="Employees('2')/ne_Manager"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager";
+                       title="ne_Manager" type="application/atom+xml; 
type=entry" />
+               <link href="Employees('2')/ne_Team"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team";
+                       title="ne_Team" type="application/atom+xml; type=entry" 
/>
+               <link href="Employees('2')/ne_Room"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room";
+                       title="ne_Room" type="application/atom+xml; type=entry" 
/>
+               <content type="application/octet-stream" 
src="Employees('2')/$value" />
+               <m:properties>
+                       <d:EmployeeId>2</d:EmployeeId>
+                       <d:EmployeeName>Frederic Fall</d:EmployeeName>
+                       <d:ManagerId>1</d:ManagerId>
+                       <d:RoomId>2</d:RoomId>
+                       <d:TeamId>1</d:TeamId>
+                       <d:Location m:type="RefScenario.c_Location">
+                               <d:City m:type="RefScenario.c_City">
+                                       <d:PostalCode>69190</d:PostalCode>
+                                       <d:CityName>Walldorf</d:CityName>
+                               </d:City>
+                               <d:Country>Germany</d:Country>
+                       </d:Location>
+                       <d:Age>32</d:Age>
+                       <d:EntryDate>2003-07-01T00:00:00</d:EntryDate>
+                       <d:ImageUrl>Employees('2')/$value</d:ImageUrl>
+               </m:properties>
+       </entry>
+       <entry>
+               
<id>http://some.host.com/service.root/ReferenceScenario.svc/Employees('3')</id>
+               <title type="text">Jonathan Smith</title>
+               <updated>2013-04-23T11:46:14.928Z</updated>
+               <category term="RefScenario.Employee"
+                       
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+               <link href="Employees('3')" rel="edit" title="Employee" />
+               <link href="Employees('3')/$value" rel="edit-media" 
type="application/octet-stream" />
+               <link href="Employees('3')/ne_Manager"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager";
+                       title="ne_Manager" type="application/atom+xml; 
type=entry" />
+               <link href="Employees('3')/ne_Team"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team";
+                       title="ne_Team" type="application/atom+xml; type=entry" 
/>
+               <link href="Employees('3')/ne_Room"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room";
+                       title="ne_Room" type="application/atom+xml; type=entry" 
/>
+               <content type="application/octet-stream" 
src="Employees('3')/$value" />
+               <m:properties>
+                       <d:EmployeeId>3</d:EmployeeId>
+                       <d:EmployeeName>Jonathan Smith</d:EmployeeName>
+                       <d:ManagerId>1</d:ManagerId>
+                       <d:RoomId>2</d:RoomId>
+                       <d:TeamId>1</d:TeamId>
+                       <d:Location m:type="RefScenario.c_Location">
+                               <d:City m:type="RefScenario.c_City">
+                                       <d:PostalCode>69190</d:PostalCode>
+                                       <d:CityName>Walldorf</d:CityName>
+                               </d:City>
+                               <d:Country>Germany</d:Country>
+                       </d:Location>
+                       <d:Age>56</d:Age>
+                       <d:EntryDate m:null="true" />
+                       <d:ImageUrl>Employees('3')/$value</d:ImageUrl>
+               </m:properties>
+       </entry>
+       <entry>
+               
<id>http://some.host.com/service.root/ReferenceScenario.svc/Employees('4')</id>
+               <title type="text">Peter Burke</title>
+               <updated>2004-09-12T00:00:00Z</updated>
+               <category term="RefScenario.Employee"
+                       
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+               <link href="Employees('4')" rel="edit" title="Employee" />
+               <link href="Employees('4')/$value" rel="edit-media" 
type="application/octet-stream" />
+               <link href="Employees('4')/ne_Manager"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager";
+                       title="ne_Manager" type="application/atom+xml; 
type=entry" />
+               <link href="Employees('4')/ne_Team"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team";
+                       title="ne_Team" type="application/atom+xml; type=entry" 
/>
+               <link href="Employees('4')/ne_Room"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room";
+                       title="ne_Room" type="application/atom+xml; type=entry" 
/>
+               <content type="application/octet-stream" 
src="Employees('4')/$value" />
+               <m:properties>
+                       <d:EmployeeId>4</d:EmployeeId>
+                       <d:EmployeeName>Peter Burke</d:EmployeeName>
+                       <d:ManagerId>3</d:ManagerId>
+                       <d:RoomId>2</d:RoomId>
+                       <d:TeamId>2</d:TeamId>
+                       <d:Location m:type="RefScenario.c_Location">
+                               <d:City m:type="RefScenario.c_City">
+                                       <d:PostalCode>69190</d:PostalCode>
+                                       <d:CityName>Walldorf</d:CityName>
+                               </d:City>
+                               <d:Country>Germany</d:Country>
+                       </d:Location>
+                       <d:Age>39</d:Age>
+                       <d:EntryDate>2004-09-12T00:00:00</d:EntryDate>
+                       <d:ImageUrl>Employees('4')/$value</d:ImageUrl>
+               </m:properties>
+       </entry>
+       <entry>
+               
<id>http://some.host.com/service.root/ReferenceScenario.svc/Employees('5')</id>
+               <title type="text">John Field</title>
+               <updated>2001-02-01T00:00:00Z</updated>
+               <category term="RefScenario.Employee"
+                       
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+               <link href="Employees('5')" rel="edit" title="Employee" />
+               <link href="Employees('5')/$value" rel="edit-media" 
type="application/octet-stream" />
+               <link href="Employees('5')/ne_Manager"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager";
+                       title="ne_Manager" type="application/atom+xml; 
type=entry" />
+               <link href="Employees('5')/ne_Team"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team";
+                       title="ne_Team" type="application/atom+xml; type=entry" 
/>
+               <link href="Employees('5')/ne_Room"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room";
+                       title="ne_Room" type="application/atom+xml; type=entry" 
/>
+               <content type="application/octet-stream" 
src="Employees('5')/$value" />
+               <m:properties>
+                       <d:EmployeeId>5</d:EmployeeId>
+                       <d:EmployeeName>John Field</d:EmployeeName>
+                       <d:ManagerId>3</d:ManagerId>
+                       <d:RoomId>3</d:RoomId>
+                       <d:TeamId>2</d:TeamId>
+                       <d:Location m:type="RefScenario.c_Location">
+                               <d:City m:type="RefScenario.c_City">
+                                       <d:PostalCode>69190</d:PostalCode>
+                                       <d:CityName>Walldorf</d:CityName>
+                               </d:City>
+                               <d:Country>Germany</d:Country>
+                       </d:Location>
+                       <d:Age>42</d:Age>
+                       <d:EntryDate>2001-02-01T00:00:00</d:EntryDate>
+                       <d:ImageUrl>Employees('5')/$value</d:ImageUrl>
+               </m:properties>
+       </entry>
+       <entry>
+               
<id>http://some.host.com/service.root/ReferenceScenario.svc/Employees('6')</id>
+               <title type="text">Susan Bay</title>
+               <updated>2010-12-01T00:00:00Z</updated>
+               <category term="RefScenario.Employee"
+                       
scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"; />
+               <link href="Employees('6')" rel="edit" title="Employee" />
+               <link href="Employees('6')/$value" rel="edit-media" 
type="application/octet-stream" />
+               <link href="Employees('6')/ne_Manager"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Manager";
+                       title="ne_Manager" type="application/atom+xml; 
type=entry" />
+               <link href="Employees('6')/ne_Team"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Team";
+                       title="ne_Team" type="application/atom+xml; type=entry" 
/>
+               <link href="Employees('6')/ne_Room"
+                       
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/ne_Room";
+                       title="ne_Room" type="application/atom+xml; type=entry" 
/>
+               <content type="application/octet-stream" 
src="Employees('6')/$value" />
+               <m:properties>
+                       <d:EmployeeId>6</d:EmployeeId>
+                       <d:EmployeeName>Susan Bay</d:EmployeeName>
+                       <d:ManagerId>1</d:ManagerId>
+                       <d:RoomId>2</d:RoomId>
+                       <d:TeamId>3</d:TeamId>
+                       <d:Location m:type="RefScenario.c_Location">
+                               <d:City m:type="RefScenario.c_City">
+                                       <d:PostalCode>69190</d:PostalCode>
+                                       <d:CityName>Walldorf</d:CityName>
+                               </d:City>
+                               <d:Country>Germany</d:Country>
+                       </d:Location>
+                       <d:Age>29</d:Age>
+                       <d:EntryDate>2010-12-01T00:00:00</d:EntryDate>
+                       <d:ImageUrl>Employees('6')/$value</d:ImageUrl>
+               </m:properties>
+       </entry>
+</feed>

Reply via email to