Answer the question
In order to leave comments, you need to log in
What is the best way to parse xml in Linux?
There is an XML of the form:
<all>
<config_ftp><hostName>host1</hostName><collector_name>collectors1</collector_name><input_ClassName>FTPSource</input_ClassName><input_policyClassName>Policy</input_policyClassName><input_FileListParser>FTPFileListParser</input_FileListParser><input_Handler>true</input_CleanupHandler><input_UserName>name1</input_UserName><input_PassWord>pass1</input_PassWord><input_FTPServer>server.com</input_FTPServer><input_policySrcDir>/</input_policySrcDir><input_policyFilePattern>SPS.*</input_policyFilePattern></config_ftp>
</all>
Answer the question
In order to leave comments, you need to log in
You need xpath. xmllint as I remember it is able.
See for example stackoverflow.com/questions/15461737/how-to-execut...
pep8.ru/doc/dive-into-python-3/14.html is also good for this question
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question