[Xml-coreutils-discuss] Select attributes
Status: Alpha
Brought to you by:
lbreyer
From: Jason P. <ja...@go...> - 2023-03-09 23:42:11
|
Hi, I can't seem to figure out how to select an attribute value. I have tried many things and can't seem to get it to work. I would expect something like this to do it: jason@goodness> xml-ls --attributes .idea/modules/client.iml ':/module/component/content' ~/src/goodcover/core <?xml version="1.0"?> <root> <content url="file://$MO..."> <sourceFolder url="file://$MO..." type="java-resou..."/> <sourceFolder url="file://$MO..." isTestSource="false"/> <sourceFolder url="file://$MO..." isTestSource="false" generated="true"/> <excludeFolder url="file://$MO..."/> </content> </root> jason@goodness> xml-ls --attributes .idea/modules/client.iml ':/module/component/content' | xml-printf '%s' ':string(/root/content/@url)' ~/src/goodcover/core xml-printf: error: tag not found: stdin%s:string(/root/content/@url) Cheers, Jason |