hxcount - count elements and attributes in HTML or XML files
hxcount [ file ]
The hxcount command counts the number of elements and attributes of
each type that appears in the input and prints a report on stdout.
The following operand is supported:
file The name of an HTML or XML file. If absent, standard input is
The following exit values are returned:
0 Successful completion.
> 0 An error occurred in the parsing of the HTML or XML file.
hxcount will try to recover from the error and produce output
Don’t trust the output if there were errors in the input.