var
grid1Ctrl =
new
Telerik.UI.RadGrid(document.getElementById(
"grid1"
), {
dataSource: {
transport:
{
read: {
url:
"test.xml"
}
},
schema: {
// specify the the schema is XML
type:
"xml"
,
data:
"/feed/entry/content"
,
model: {
fields: {
title:
"What to put here to get at Hello World text of <m:properties><d:Title>Hello World</d:Title></m:properties>"
,
}
}
}
},
height: 300
});
Here's the data in test.xml.
<?xml version="1.0" encoding="utf-8"?><feed xml:base="https://microsoft.sharepoint.com/someurl/_api/" xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:georss="http://www.georss.org/georss" xmlns:gml="
/><updated>2013-04-02T17:20:21Z</updated><entry m:etag=""24""><id>40453566-9fd4-4072-9123-3287afcc007c</id><category term="SP.Data.Blah" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /><link rel="edit" href="Web/Lists(guid'c9e78bb7-103a-441b-a31e-b8204e8e890f')/Items(1)" /><title /><updated>2013-04-02T17:20:21Z</updated><author><name /></author><content type="application/xml"><m:properties><d:Title>Hello World</d:Title></m:properties></content></entry></feed>