---
metadata:
  - name: generator
    content: Diplodoc Platform v5.39.1
alternate:
  - https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/examples/cases/ymapsml_georss.md
  - https://yandex.com.tr/dev/jsapi-v2-1/doc/ru/v2-1/examples/cases/ymapsml_georss.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com.tr/dev/jsapi-v2-1/doc/en/llms.txt

# Converting GeoRSS to YMapsML

<iframe id="LIVE-EXAMPLE" style="width:100%;height: 400px;border-radius: 8px;border: 1px solid rgba(92, 94, 102, 0.14);" frameBorder="0" src="https://yastatic.net/s3/front-maps-static/maps-front-jsapi-v2-1/examples/2/out/s3-cases/en/ymapsml_georss/index.html" allow="fullscreen"></iframe>

<a target="_blank" rel="noopener noreferrer" style="display: inline-block;margin-top: 10px;cursor: pointer;border-radius: 4px;padding: 9px 12px;background: #151515;color: white;text-decoration: none;font-weight: 500" href="https://codesandbox.io/p/sandbox/l6rvdx?file=index.html">Open in CodeSandbox</a>

<div id="references">
    <a href="https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ready">ready</a>, <a href="https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/Map">Map</a>, <a href="https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/geoXml.load">geoXml.load</a>, <a href="https://yandex.ru/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/GeoObjectCollection">GeoObjectCollection</a>
</div>
<p>
    The YMapsML displayed on the map (see the ymapsml.xml file) was automatically generated using XSLT,
	from the data that was originally presented in GeoRSS format (see georss.xml). The conversion template is in the georsstoymapsm_xsl.xml file.
</p>

{% list tabs %}

-   index.html

    ```html
    <!DOCTYPE html>
    <html>
        <head>
            <title>Examples. Converting GeoRSS to YMapsML.</title>
            <meta
                http-equiv="Content-Type"
                content="text/html; charset=UTF-8"
            />
            <!--
            Set your own API-key. Testing key is not valid for other web-sites and services.
            Get your API-key on the Developer Dashboard: https://developer.tech.yandex.ru/keys/
        -->
            
            
            
        </head>
        <body>
            <div id="map"></div>
        </body>
    </html>
    ```

-   ymapsml_georss.js

    ```js
    ymaps.ready(init);

    function init() {
        // Creating an instance of the map.
        var myMap = new ymaps.Map(
            "map",
            {
                center: [50.76, 35.64],
                zoom: 0,
            },
            {
                searchControlProvider: "yandex#search",
            }
        );

        // Loading a YMapsML file.
        ymaps.geoXml.load("ymapsml.xml").then(
            function (res) {
                myMap.geoObjects.add(res.geoObjects);
            },
            // Called if loading the YMapsML file was unsuccessful.
            function (error) {
                alert(
                    "When loading the YMapsML file, the following error occurred: " +
                        error
                );
            }
        );
    }
    ```

{% endlist %}
