Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Script for creating an xml file to be updated froom Google Sheet

$
0
0

Good dayIn general, there is such a table in Google Sheet https://docs.google.com/spreadsheets/d/1tVs7IvRxyiDjwIpt4sKjMfkKsZymJU0BuiGMSFCFwWU/edit?usp=sharing

From this table, I need to generate such an xml file.And then update the value when editing in the cells and update the value in the file

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE yml_catalog SYSTEM "shops.dtd"><yml_catalog date="2023-01-09 12:00"><shop><name></name><company>А</company><url>https://a.com.ua</url><currencies><currency id="UAH" rate="1"/></currencies><categories><category id="6300">Cat1</category></categories><offers><offer available="true" id="1"><price>10</price><currencyId>UAH</currencyId><categoryId>6300</categoryId><name>Name #1</name><name2>Name #2_1</name2><description><![CDATA[<p>Decs#1</p>]]></description><description2><![CDATA[<p>Decs#2_1</p>]]></description2><vendorCode>90/5</vendorCode><param name="param1">value1_1</param><param name="param3">value3_1</param><stock_quantity>1</stock_quantity></offer><offer available="true" id="2"><price>20</price><currencyId>UAH</currencyId><categoryId>6300</categoryId><name>Name #2</name><name2>Name #2_2</name2><description><![CDATA[<p>Decs#2</p>]]></description><description2><![CDATA[<p>Decs#2_2</p>]]></description2><vendorCode>90/5</vendorCode><stock_quantity>1</stock_quantity><param name="param1">value1_2</param><param name="param3">value2_2</param><param name="param3">value3_2</param></offer></offers></shop></yml_catalog>

Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>