Sample Header Ad - 728x90

reading XML file and extract only node names and structure

3 votes
2 answers
3244 views
I need to audit XML file structures and need to generate a report that shows only the DOM tree structure and omit the values. Essentially, I just the node names only and no values. I tried using xmllint and xmlstarlet but can't figure out how to do this. Does anyone know of any tools or examples of above tools that do this?
$filename.xml | xmlstarlet format -t
gives me what I need, but I want to omit all values.
Asked by Kinnara (31 rep)
Jul 8, 2021, 02:29 PM
Last activity: Jul 9, 2021, 08:10 AM