PDA

View Full Version : How to read XML with "namespace-prefixes" in tags?



DiscoBoy
30 Jul 2012, 1:24 AM
My problem is that I consume an XML from a remote server which puts a lot of namespace-prefixes in all the elements. An example is:


<wps:Capabilities xml:lang="en" service="WPS" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd"><ows:ServiceIdentification><ows:Title>Prototype GeoServer WPS</ows:Title><ows:Abstract>

In my XML reader I can't use ":"as this causes problems with the DOMQuery selectors. The CSS3 selector for Namespaces is "|", but also using "wps|Capabilities" does not work for me! Any idea what might help? I would be really astonished if ExtJS would not be capable of Namespaces in xml...