- 
        Couldn't load subscription status. 
- Fork 33
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem Statement
Sometimes I need to modify an xml file from the script. I could use sed but IMO it is error prone as it does not understand xml structure.
jq supports modifying values as follows:
$ curl https://dummyjson.com/products/1  | jq '.id=2'  
{
  "id": 2, # this was originally 1
  "title": "iPhone 9",
  "description": "An apple mobile which is nothing like apple",
  "price": 549,
  "discountPercentage": 12.96,
  "rating": 4.69,
  "stock": 94,
  "brand": "Apple",
  "category": "smartphones",
  "thumbnail": "https://i.dummyjson.com/data/products/1/thumbnail.jpg",
  "images": [
    "https://i.dummyjson.com/data/products/1/1.jpg",
    "https://i.dummyjson.com/data/products/1/2.jpg",
    "https://i.dummyjson.com/data/products/1/3.jpg",
    "https://i.dummyjson.com/data/products/1/4.jpg",
    "https://i.dummyjson.com/data/products/1/thumbnail.jpg"
  ]
}
It would be great to have the same provided by xq.
holomekc, guai, lecogiteur, very-doge-wow, dariusj1 and 5 more
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request