xml


How to retrieve a particular tag from an XML output using curl


I am issuing a curl command using a command prompt and the output is like this:
<user-default-list>
<list-items>
<list-count units="quantity">4</list-count>
<list-item array="true">
<uriref>/manage/v2/users/sahil</uriref>
<idref>7155997774390988975</idref>
<nameref>sahil</nameref>
<description>admin user</description>
</list-item></user-default-list>
I want to list only the nameref and description tags in the output. How can this be achieved?
Grep and xmllint won't work for me, as the output is being retrieved in a Windows command prompt, which does not have those tools. Please suggest some solutions.

Related Links

Replace xml subnode value in AS3
Open source command line tool for Linux to diff XML files ignoring element order
split a string based on a mapping - xslt
XML formatting Indentation Tags Matching - Linux
How to view xsl output in browsers?
Using a combination of databases/datasources in an application
How can I print large XML string generated by Oracle?
Change xml namespace in root element
SSIS transform rows to columns from xml
rearranging of XML elements and extracting relevant data from its values
XML Interpreter
XML UTF-8 encoding what is the correct way to represent the non-ascii data
XLINQ: string vs Convert.ToString() when extracting element values
Scala, combining filters on XML node
XML digital signature - wrongly computed digest
Zoho API inserRecord using Curl and XML, not returning an error and not adding the “Potential”

Categories

HOME
cobalt
fuelux
apache-flink
apache-jena
webdriver
twig
powerpoint
interface
sh
solaris
seo
javacc
newrelic
cublas
nsbundle
rom
jetty
angularfire2
lanczos
activecollab
jxl
docx
mathprog
google-picker
rubymotion
spring-async
backpack-for-laravel
exploit
direct3d11
moses
beautifier
licensing
android-things
quantlib
comparable
volatile
database-comparison
catch-unit-test
twos-complement
carriage-return
yowsup
sharepoint-workflow
salesforce-communities
railstutorial.org
diacritics
typesafe-config
c9.io
ogc
trigonometry
skylink
branching-and-merging
dapper-simplecrud
pom.xml
builder
serde
wcftestclient
stdmap
qtranslate
java-bytecode-asm
arules
payload
google-photos
gameplay-kit
django-1.10
juice-ui
simplepie
redbeard-ios
parfor
nikeplus-api
scaffolding
installshield-2010
expectations
android-dateutils
firebase-security
freepbx
spreadjs
gcloud-ruby
sklearn-pandas
toast
zen-cart
snoop
bcache
beatsmusic
sip-server
nsmenu
trdion2011
dsym
menubar
qscrollarea
getopt
inputmismatchexception
printdialog
rolify
time.h
abstract-data-type
actiondispatch
virtual-pc
wcf-configuration
apache-whirr
mapping-by-code
google-maps-mobile
landscape-portrait
google-floodlight
data-mapping
glui
wysiwym
technical-debt
java1.4
business-model
xslcompiledtransform

Resources

Encrypt Message