P
P
Pess172019-01-21 19:36:32
Python
Pess17, 2019-01-21 19:36:32

How to edit xml?

There are different xml files, I need to bring them into a single reasonable form, so that the colors are separately recorded for variations and sizes with brands. Its stock view is terrible, everything is in the name tag, the question is how can I edit it, internally bring it to the view I need ?? Tell me the most common way and you can have a couple of options for python.
Thank you in advance.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nick V, 2019-01-21
@half-life

The most common way please tell me

Can. lxml

A
Anton Belichkov, 2019-01-22
@za90

The most common way for xml is to transform it into another xml using xsl. Python is not needed here, you can crank it in any browser.
https://www.w3schools.com/xml/xsl_intro.asp

V
Vadim Shatalov, 2019-01-22
@netpastor

https://docs.python-guide.org/scenarios/xml/xmltodict
_

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question