I have a XML file in unix which contains some 1392 records when I do a wc-l command on the filename,
wc -l filename.xml
I would like to know how to do a count of records as xml file and normal file is not same as XML contains the open parent tag and the corresponding closing tag.
So for an effective way of counting the total no. of records of a XML file in unix, what should be done?
I am just learning Unix and would like to have a thought on this..