I don't have your html so I have to guess, but with xmlstarlet, for example, try something like:
xmlstarlet sel -t -m "//*[local-name()='softwareSystem']/module/rootPath[not(@*[local-name()='type'])]" -v $'concat(@name,"
")' file.xml
or
xmlstarlet sel -t -m "//*[local-name()='softwareSystem']/module/rootPath[not(@*[local-name()='type'])]" -v $@name file.xml -n file.xml
and see if it works.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…