<property>
<name>javax.jdo.option.ConnectionUserName</name>
<value>pass</value>
<description>username to use against metastore database</description>
</property>
<property>
<name>javax.jdo.option.ConnectionPassword</name>
<value>pass`enter code here`</value>
<description>password to use against metastore database</description>
</property>
我们如何获得javax.jdo.option.ConnectionUserName -pass和 javax.jdo.option.ConnectionPassword -pass
答案 0 :(得分:1)
您可以尝试xmllint
The xmllint program parses one or more XML files, specified on the command line
as xmlfile. It prints various types of output, depending upon the options
selected. It is useful for detecting errors both in XML code and
in the XML parser itself.
它允许您使用--pattern选项通过xpath选择XML doc中的元素。
我现在给你的方法是如何使用它并获得所需的数据是你的责任。
如果您遇到任何问题,请发布。
默认安装在Ubuntu上。