• Uncategorized

About xml : xmlstarlet-unable-to-read-file-location-variable

Question Detail

I have run into a strange issue with the xmlstarlet utility
Whenever I run

xmlstarlet sel -t -v '//email' demofilename.xml

It returns the all the emails found within the file with no issues.

However When I replace the filename with a dynamic variable containing the filepath as given below, it fails.

xmlstarlet sel -t -v '//email' "$myfilepath"

It returns with the following message.

*Wherever file name mentioned in command help it is assumed
that URL can be used instead as well.

Type: xmlstarlet <command> --help <ENTER> for command help*

My Xml Version is given as below:-
Running this on Kali linux os 2018 on bash shell 4.4 version.

xmlstarlet --version
compiled against libxml2 2.9.4, linked with 20904
compiled against libxslt 1.1.29, linked with 10129

Would appreciate if someone could assist me with this madness…

Question Answer

No answer for now.

You may also like...

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.