Stock should be converted to a numeric valueBy replacing {stock[1]} by "available " to 100, and "limited stock" to 10, "out of stock" to 0. The idea is to work with numeric values and update stocks.
I am looking for someone that could handle the problem with this dynamic xml file