Loading Custom XML into grid view

I have the following xml file (test.xml):

<?xml version="1.0" encoding="UTF-8"?> 250 9924183144 Schedule Email Is here 478 54321 amish soni 476 6145794346 Scott Thomson

I am using the following code to load the grid:

html, body { width: 100%; height: 100%; margin: 0px; overflow: hidden; } <%=PageTitle%>

However when the page is rendered in the browser it has only headings, no data. Any idea what I have done wrong?

OK, using firebug I have narrowed it down to the fact that the xml file has Null values in it.

categories.firstChild is null
[Break On This Error] categories.firstChild.data

It seems to be happening here:
var strAr = [
userid.firstChild.data,
mobile_phone.firstChild.data,
first_name.firstChild.data,
last_name.firstChild.data,
categories.firstChild.data
];

Any help would be extremely appreciated!! THANKS :slight_smile: