4002N/A/* custom styles for this example */
0N/A.example .yui3-datatable {
2362N/A/* css to counter global site css */
0N/A display: table-caption;
0N/A text-transform: none;
2362N/A<div id="chinese" class="dt-example"></div>
0N/AYUI().use("datasource-io", "datasource-xmlschema", "datatable-datasource", function (Y) {
0N/A resultListLocator: "Result",
0N/A locator:"*[local-name() ='Title']"
0N/A locator:"*[local-name() ='Phone']"
0N/A locator:"*[local-name()='Rating']/*[local-name()='AverageRating']",
0N/A // The data contains "NaN" for unrated restaurants
0N/A parser: function (val) {
0N/A return isNaN(val) ? '(none)' : val;
0N/A columns: ["Title", "Phone", "Rating"],
0N/A summary:"Chinese restaurants near 98089",
0N/A caption:"Table with XML data from same-domain script"
2301N/A initialRequest:"zip=94089&query=chinese"