Ignore:
Timestamp:
2018-05-02T22:48:35+02:00 (7 years ago)
Author:
Don-vip
Message:

fix #16248 - fix parsing of XML namespace in WMS capabilities (patch by Bartosz Firyn, modified)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/imagery/WMSImagery.java

    r13398 r13699  
    3434
    3535import org.openstreetmap.josm.data.Bounds;
     36import org.openstreetmap.josm.data.imagery.GetCapabilitiesParseHelper;
    3637import org.openstreetmap.josm.data.imagery.ImageryInfo;
    3738import org.openstreetmap.josm.data.projection.Projections;
     
    347348            child = getChild(child, "OnlineResource");
    348349            if (child != null) {
    349                 String baseURL = child.getAttribute("xlink:href");
     350                String baseURL = child.getAttributeNS(GetCapabilitiesParseHelper.XLINK_NS_URL, "href");
    350351                if (!baseURL.equals(serviceUrlStr)) {
    351352                    URL newURL = new URL(baseURL);
Note: See TracChangeset for help on using the changeset viewer.