Using Namespaces in XML Data Model
I'm getting the following error when trying to reference an xml element which has a namespace prefix:
Error: uncaught exception: [Exception... "An attempt was made to create or change an object in a way which is incorrect with regard to namespaces" code: "14" nsresult: "0x8053000e (NS_ERROR_DOM_NAMESPACE_ERR)" location: "http://localhost:8080/js/grid-runtime/lib/grid.js Line: 27"]
Here's the javascript code that defines the Xpath for the columns:
// set columns XPath
table.setColumns(["title", "link", "description", "ebay:startdate", "ebay:enddate", "ebay:buyitnowprice", "guid"]);
How can I reference an element with a namespace?
Thanks.
Error: uncaught exception: [Exception... "An attempt was made to create or change an object in a way which is incorrect with regard to namespaces" code: "14" nsresult: "0x8053000e (NS_ERROR_DOM_NAMESPACE_ERR)" location: "http://localhost:8080/js/grid-runtime/lib/grid.js Line: 27"]
Here's the javascript code that defines the Xpath for the columns:
// set columns XPath
table.setColumns(["title", "link", "description", "ebay:startdate", "ebay:enddate", "ebay:buyitnowprice", "guid"]);
How can I reference an element with a namespace?
Thanks.
Todd
December 21,