We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug Escaping in XML does not work properly (when the string is already there)
To Reproduce Save file as es_systems.cfg
<?xml version="1.0"?> <systemList> <system> <name>retropie</name> <fullname>RetroPie</fullname> <path>/home/fozz/RetroPie/retropiemenu</path> <extension>.rp .sh</extension> <command>sudo /home/fozz/RetroPie-Setup/retropie_packages.sh retropiemenu launch %ROM% </dev/tty >/dev/tty</command> <platform/> <theme>retropie</theme> </system> </systemList>
and run the command
cat es_systems.cfg | dasel put string -p xml a .systemList x
Expected behavior The </dev/tty > should have been retained, it also should have not generated an invalid document (it put in < instead of <)
</dev/tty >
<
<
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
Thanks for raising this issue @forbesmyester.
This is an issue with the XML parser being used - I've raised an issue with them: clbanning/mxj#84
Sorry, something went wrong.
This has been fixed as of v1.9.1: https://dasel.tomwright.me/s/0be94bad-15e5-4d37-b2d4-24bf054a856c
v1.9.1
$ echo '<systemList> <system> <name>retropie</name> <fullname>RetroPie</fullname> <path>/home/fozz/RetroPie/retropiemenu</path> <extension>.rp .sh</extension> <command>sudo /home/fozz/RetroPie-Setup/retropie_packages.sh retropiemenu launch %ROM% </dev/tty >/dev/tty</command> <platform/> <theme>retropie</theme> </system> </systemList>' | dasel put string -p xml .newElement newValue <doc> <newElement>newValue</newElement> <systemList> <system> <command>sudo /home/fozz/RetroPie-Setup/retropie_packages.sh retropiemenu launch %ROM% </dev/tty >/dev/tty</command> <extension>.rp .sh</extension> <fullname>RetroPie</fullname> <name>retropie</name> <path>/home/fozz/RetroPie/retropiemenu</path> <platform/> <theme>retropie</theme> </system> </systemList> </doc>
Awesome, efficiency. Also am loving the tool too Thanks for maintaining it :-)
TomWright
Successfully merging a pull request may close this issue.
Describe the bug
Escaping in XML does not work properly (when the string is already there)
To Reproduce
Save file as es_systems.cfg
and run the command
cat es_systems.cfg | dasel put string -p xml a .systemList x
Expected behavior
The
</dev/tty >
should have been retained, it also should have not generated an invalid document (it put in<
instead of<
)Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: