Search Results

Search: Posts Made By: jfmorales
22,274
Posted By jfmorales
Solved
Thanks, fpmurphy! Your example worked perfectly, with only a slight adjustment for the differing syntax of xpath on my system:

xpath -e "count(//bread)" input.xml 2>/dev/null

The 2>/dev/null...
22,274
Posted By jfmorales
The XML file is still being designed, so we have...
The XML file is still being designed, so we have some flexibility there. I expect it to include collections with a varying number of members such as

<breads>
<bread>
...
22,274
Posted By jfmorales
Bash XML Parsing using Perl XPath
I have a bash script that needs to read input from an XML file, which includes varying numbers of a certain type of child node. I want to be able to iterate through all the child nodes of a given...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 05:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy