Hi i am not sure if this is possible, i have checked over google many options.For example if i have a http URL which has xml content : http://server.com/lastBuild/api/xmlcontent would be something like below and <building>false</building> this can be present in multiple lines<action/><building>false</building><displayName>mercury_system</displayName><duration>1606128</duration>Can i parse the same http url without downloading the content to local and print the last occurrence of 'false' string in <building>false</building>?
How can i parse a xml file from the http URL without downloading the file and print the desired string?
linux;shell script;awk;sed;xml
You don't need to 'download' it to a file first. You can temporarily download it as part of a pipelineUse xmlstarlet  to parse xmlcurl 'http://example.com/lastBuild/api/xml' | xmlstarlet sel -t -c //building[last()]/text()