Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要标签中属性的值。 前任 。名称 xmlns:xsi="http://www.w3.org/2001/XMLinst" xsi:spaceSchema="Name_5879.xsd"> ... /Name>" 我可以使用 xml_grep 获取值“Name_5879.xsd”吗?
$ xmlstarlet sel -t -m "Name" -v "@xsi:spaceSchema" input.xml Name_5879.xsd