Converter from .xml to .xlsxНужен конвертер с .xml в .xlsx
70*70 Brend Satin
by 34029
HTTPS://abc.ua/komplekt-navolochek
by UAH
of 89
1
390
310,000
HTTPS:/abc.ua/image/.jpeg
HTTPS://abc.ua/image1/.jpeg
Brend
by 34029
by Satan
The Black
Set of wheels: 70x70 cm - 2 pieces
100% cotton, satin
70*70 cm
Ordinary
with plant printing
In .xlsx you need to create a headline with the names of all tags, one tag=one column (offer id, name, model, url, currencyId, quantity_in_stock, price, price_opt, picture, picture, vendor, vendorCode, description, Material, Color, Additional characteristics, Material characteristics, Size, Type, Decoration) and place there the values of these tags.The main points:
1 .The structure in the feed is not the same, somewhere can be one picture, somewhere five, param name can be two in one offer, and may be seven.Additionally, the param name is not the same, somewhere it may be "Type", and somewhere "Weight" and "Type" is absent at all.Therefore, if the first line we have is offer with a seven picture, and the second line offer with two picture, then in the second line only the values for two picture are filled, and five columns remain empty.Whatever in the second line does not present the value from the vendor in the column that for the first line is responsible for the third picture.It is necessary that each matching parameter in different offer id appears in one column, not for example, in one offer id will be the "Color" parameter in the column C1 and in the other that same parameter will be in the column E1 because in the first offer id there were two images, and in the other offer id there were 4 images and went the shift by the columns to the right.2ndDifferent feeds may have different tags names, for example, VendorCode can be vendor code, art, etc.That is, setting a universal name will not come out immediately.Additionally, somewhere offer can be enrolled in offers and somewhere it will already be item enrolled in items etc.and d.ThreeFeed can be both a file and a link.Per
Нужен конвертер с .xml в .xlsx чтобы структуру .xml файла поместить в строку .xlsx. К примеру есть:
<offers>
<offer id="111" available="true">
<name>Комплект наволочек 70*70 Brend Сатин</name>
<model>34029</model>
<url>https://abc.ua/komplekt-navolochek</url>
<currencyId>UAH</currencyId>
<categoryId>89</categoryId>
<quantity_in_stock>1</quantity_in_stock>
<price>390</price>
<price_opt>310.0000</price_opt>
<picture>https:/abc.ua/image/.jpeg</picture>
<picture>https://abc.ua/image1/.jpeg</picture>
<vendor>Brend</vendor>
<vendorCode>34029</vendorCode>
<description>
<![CDATA[ Наволочки из сатина (100% хлопок )]]>
</description>
<param name="Материал">Сатин</param>
<param name="Цвет">Чёрный</param>
<param name="Дополнительные характеристики">Набор наволочек: 70х70 см - 2 шт</param>
<param name="Особенности материала">100% хлопок, сатин</param>
<param name="Размеры">70*70 см</param>
<param name="Тип">Обычные</param>
<param name="Декорирование">С растительным принтом</param>
</offer>
Нужно в .xlsx создать заголовок с именами всех тегов, один тег=один столбец (offer id, name, model, url, currencyId, quantity_in_stock, price, price_opt, picture, picture, vendor, vendorCode, description, Материал, Цвет, Дополнительные характеристики, Особенности материала, Размеры, Тип, Декорирование) и поместить туда значения этих тегов.
Основные моменты:
1. Структура в фиде не одинаковая, где-то может быть одна picture, где-то пять, param name может быть два в одном offer, а может быть семь. К тому же, param name не одинаковые, где-то может быть "Тип", а где-то "Вес" а "Тип" отсутствует вовсе. Поэтому, если первой строкой у нас выступает offer с семью picture, а второй строкой offer с двумя picture, то во второй строке заполняются только значения для двух picture, а пять столбцов остаются пустыми. Что бы во второй строке не присутствовало значение от vendor в столбце который для первой строки отвечает за третью picture. Нужно чтобы каждый совпадающий параметр в разных offer id отображался в одном столбце, а не к примеру, в одном offer id будет параметр "Цвет" в столбце С1 а в другом этот же параметр будет в столбце Е1 из-за того, что в первом offer id было две картинки, а в другом offer id было 4 картинки и пошло смещение по столбцам в право.
2. В разных фидах могут быть разные названия тегов, к примеру VendorCodу может быть vendor code, art и т.д. То есть, задать сразу универсальное название не выйдет. К тому же, где-то offer могут быть завернуты в offers а где-то уже будут item завернуты в items и т. д.
3. Фид может быть как файлом, так и ссылкой.
Возможно криво-косо что-то объяснил, задавайте уточняющие вопросы.
-
485 2 0 I can do it on both go and python. I'm waiting for the pp to discuss details.
Привіт, можу зробити як на go, так і на python. Чекаю в пп для обговорення деталей
-
proposal concealed by freelancer
-
proposal concealed by freelancer
-
3560 50 0 Hello to you!
Recently I did a similar task (where it was necessary to "calculate that the photo could be 2 or 7 or..." )
Здравствуйте!
Недавно делал подобную задачу (где нужно было "всчитать что фото может быть 2 или 7 или..." )
-
proposal concealed by freelancer
-
705 2 0 I do in PHP.
• • • • • •
Сделаю на php
-----------------------------------------------------------