<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Add WMS Layer. Error 23. &amp;quot;Invalid XML&amp;quot; in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/add-wms-layer-error-23-quot-invalid-xml-quot/m-p/1661718#M7840</link>
    <description>&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;Which version of Runtime/Maps SDK are you on?&lt;/P&gt;&lt;P&gt;I tested this layer with latest released version of ArcGIS Maps SDK for .NET (200.8.0) and the service appeared to be working:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-10-29_023916.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/142827iAB47376630F2DC77/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-10-29_023916.png" alt="2025-10-29_023916.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's possible that there is some platform-specific issue here, so I will check with the Swift team as well.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Oct 2025 09:44:53 GMT</pubDate>
    <dc:creator>MatveiStefarov</dc:creator>
    <dc:date>2025-10-29T09:44:53Z</dc:date>
    <item>
      <title>Add WMS Layer. Error 23. "Invalid XML"</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/add-wms-layer-error-23-quot-invalid-xml-quot/m-p/1661695#M7836</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;In a sample app with just a single map, I am trying to load a WMS layer with the next parameters&lt;/P&gt;&lt;LI-CODE lang="c"&gt;let wmsServiceURL = URL(string: "https://my_geoserver.com?version=1.1.0")!
let wmsServiceLayerNames = ["my_layer_name"]

// initialize the WMS layer with the service URL and uniquely identifying WMS layer names
let wmsLayer = AGSWMSLayer(url: wmsServiceURL, layerNames: wmsServiceLayerNames)

// load the WMS layer
wmsLayer.load { [weak self] (error) in
       if let error = error {
           print(error)
       } else if wmsLayer.loadStatus == .loaded {
           // add the WMS layer to the map
           map.operationalLayers.add(wmsLayer)
       }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;No matter if I add the query param with version 1.1.0 or not, I always receive the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Error Domain=com.esri.arcgis.runtime.error Code=23 "Invalid XML." UserInfo={NSLocalizedFailureReason=Error processing WMS service XML response.
XML comment is not well-formed., NSLocalizedDescription=Invalid XML., Additional Message=Error processing WMS service XML response.
XML comment is not well-formed.}&lt;/LI-CODE&gt;&lt;P&gt;The server response is a valid XML, tested in multiple validators.&lt;BR /&gt;&lt;BR /&gt;I have used a proxy as well for testing purposes just to isolated the layer I want to load from the multiple I receive in the GetCapabilities server response, but unfortunately I get the same error 23 with no further explanation.&lt;BR /&gt;&lt;BR /&gt;Could you help me? Do you have an idea of what is going on?&lt;BR /&gt;Than you in advance&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 17:05:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/add-wms-layer-error-23-quot-invalid-xml-quot/m-p/1661695#M7836</guid>
      <dc:creator>DanielGaston</dc:creator>
      <dc:date>2025-10-30T17:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Add WMS Layer. Error 23. "Invalid XML"</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/add-wms-layer-error-23-quot-invalid-xml-quot/m-p/1661718#M7840</link>
      <description>&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;Which version of Runtime/Maps SDK are you on?&lt;/P&gt;&lt;P&gt;I tested this layer with latest released version of ArcGIS Maps SDK for .NET (200.8.0) and the service appeared to be working:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2025-10-29_023916.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/142827iAB47376630F2DC77/image-size/large?v=v2&amp;amp;px=999" role="button" title="2025-10-29_023916.png" alt="2025-10-29_023916.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's possible that there is some platform-specific issue here, so I will check with the Swift team as well.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2025 09:44:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/add-wms-layer-error-23-quot-invalid-xml-quot/m-p/1661718#M7840</guid>
      <dc:creator>MatveiStefarov</dc:creator>
      <dc:date>2025-10-29T09:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Add WMS Layer. Error 23. "Invalid XML"</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/add-wms-layer-error-23-quot-invalid-xml-quot/m-p/1661729#M7847</link>
      <description>&lt;P&gt;argis-runtime-ios 100.15.6&lt;BR /&gt;the point is I have to make it work with that legacy version (otherwise I need to migrate the whole project to the 2xx)&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2025 10:15:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/add-wms-layer-error-23-quot-invalid-xml-quot/m-p/1661729#M7847</guid>
      <dc:creator>DanielGaston</dc:creator>
      <dc:date>2025-10-29T10:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Add WMS Layer. Error 23. "Invalid XML"</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/add-wms-layer-error-23-quot-invalid-xml-quot/m-p/1662125#M7876</link>
      <description>&lt;P&gt;I narrowed down the problem: there is a bug in the XML parser that is triggered when a `CDATA` section contains `]` in its text.&amp;nbsp; This bug was fixed in ArcGIS Maps SDK version 200.4.0.&lt;/P&gt;&lt;P&gt;I'm afraid 100.15.x is now out of support, and will not receive further updates.&amp;nbsp; Your best bet would be to upgrade to 200.8.0, which is a long-term supported release that already fixes this issue, and will continue to receive patches for a couple more years.&lt;/P&gt;&lt;P&gt;If you need an immediate workaround, you can: 1) download the capabilities XML, 2) edit the problematic CDATA sections to avoid brackets, and then 3) self-host the edited capabilities document somewhere.&amp;nbsp; For example, here is a copy I made just by search-and-replacing "[°C]" with "(°C)".&amp;nbsp; It loads for me even in old versions of ArcGISRuntime:&amp;nbsp;&lt;A href="https://gist.githubusercontent.com/mstefarov/98e60a5aefb0512ae5b33ab9f2c1212e/raw/5b4e5bbce6673a74bc9f71393b157d54773b5492/geoserver.webservice-energy.org.WMS.xml" target="_blank" rel="noopener"&gt;gist.githubusercontent.com/mstefarov/98e60a5aefb0512ae5b33ab9f2c1212e/raw/5b4e5bbce6673a74bc9f71393b157d54773b5492/geoserver.webservice-energy.org.WMS.xml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This workaround is possible because the WMS standard is quite flexible: you can edit and host the &lt;EM&gt;capabilities document&lt;/EM&gt; anywhere, and it will still link to &lt;EM&gt;map data&lt;/EM&gt; from the original server.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 08:25:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/add-wms-layer-error-23-quot-invalid-xml-quot/m-p/1662125#M7876</guid>
      <dc:creator>MatveiStefarov</dc:creator>
      <dc:date>2025-10-30T08:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: Add WMS Layer. Error 23. "Invalid XML"</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/add-wms-layer-error-23-quot-invalid-xml-quot/m-p/1662146#M7878</link>
      <description>&lt;P&gt;Thank you!&lt;BR /&gt;I appreciate it&lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2025 10:47:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/add-wms-layer-error-23-quot-invalid-xml-quot/m-p/1662146#M7878</guid>
      <dc:creator>DanielGaston</dc:creator>
      <dc:date>2025-10-30T10:47:05Z</dc:date>
    </item>
  </channel>
</rss>

