PDA

View Full Version : Ext.data.XmlReader Record xml namespace prefixes



nzasch
30 Nov 2010, 7:37 AM
Hi!

I'm a very beginner... in the example http://dev.sencha.com/deploy/dev/examples/form/xml-form.html uses Ext.data.XmlReader to read the xml document. It's possible to get an XML element that has the tag name preceeded by namespace?

something like <job:company>Ext JS</job:company>.

tried all the obvious ways but doesn't work :(

searched in the doc but can't find anything related yet

many thanks
nzansch

fay
30 Nov 2010, 7:57 AM
See:


http://www.sencha.com/forum/showthread.php?99271-Issue-with-XMLReader-and-colon-in-XML&highlight=xmlreader+namespace
http://www.sencha.com/forum/showthread.php?58153-How-to-recover-an-attribute-in-grid-with-xml&highlight=xml+namespace

Condor
30 Nov 2010, 8:03 AM
DomQuery doesn't support namespaces. The only way to support them is by patching in every used namespace (e.g. here (http://www.sencha.com/forum/showthread.php?58153-How-to-recover-an-attribute-in-grid-with-xml&p=279678#post279678)).