D
D
dsgnfox2019-08-16 13:29:17
Yandex Market Language
dsgnfox, 2019-08-16 13:29:17

How to return normal view to minified xml file?

There is an XML file in which everything is in one line.
How to automatically make the formatting become normal and indented?
Now like this:

<?xml version="1.0" encoding="utf-8"?><yml_catalog xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" date="2019-08-16 12:50" xmlns="http://market.zakupki.mos.ru/spIntegration/Yml/1.0"><shop><name></name><cost></cost></shop></yml_catalog>

You need it like this:
<?xml version="1.0" encoding="utf-8"?>
<yml_catalog xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" date="2019-08-16 12:50" xmlns="http://market.zakupki.mos.ru/spIntegration/Yml/1.0">
  <shop>
    <name>
    </name>
    <cost>
    </cost>
  </shop>
</yml_catalog>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ronald McDonald, 2019-08-16
@dsgnfox

https://www.freeformatter.com/html-formatter.html#...
Checked - it works.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question