You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/bin/dasel_linux_386 put -f dasel_test.xml -r xml --pretty=true -v 'test_ood' 'greddle.bar.fizz.-id'
However, attempts to add the attribute 'id' to the baz element fails:
~/bin/dasel_linux_386 put -f dasel_test.xml -r xml --pretty=true -v 'test_ood' 'greddle.bar.baz.-id'
Error: cannot use property selector on non map/struct types: string: property not found: -id
~/bin/dasel_linux_386 put -f dasel_test.xml -r xml --pretty=true -v 'test_ood' 'greddle.bar.baz.-id.append()'
Error: cannot use property selector on non map/struct types: string: property not found: -id
~/bin/dasel_linux_386 put -f dasel_test.xml -r xml --pretty=true -v 'test_ood' 'greddle.bar.baz.-id.[]'
Error: cannot use property selector on non map/struct types: string: property not found: -id
Is this possible within Dasel - if so, can someone point me to what I'm missing?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
I'm attempting to use Dasel to modify an existing XML file.
Adding or Updating elements works fine.
Updating an existing attribute works fine.
However, I'm stuck with the creation of new attribute:
Sample File: dasel_test.xml
I can update the greddle.bar.fizz element with:
~/bin/dasel_linux_386 put -f dasel_test.xml -r xml --pretty=true -v 'test_ood' 'greddle.bar.fizz.-id'
However, attempts to add the attribute 'id' to the baz element fails:
Is this possible within Dasel - if so, can someone point me to what I'm missing?
Beta Was this translation helpful? Give feedback.
All reactions