parse xml and extract the attribute value by search tag in shell
Hi Team,
I am working on a automation part where required to open some xml files and extract the attribute values and store in a variable. all xml files are different like- Quote:
Quote:
can anyone help here to extract the only CODE value without checking the files content in a single command. thanks in Advance |
The similar threads below show you have similar queries that have been answered. If you don't take that advice, why ask again ?.
|
Agree totally with syg00....you've been here three years now, OP, and have asked us REPEATEDLY to write scripts for you, and don't seem to take advice when it's given.
There are MANY XML parsing tools available to you...Perl has several that are excellent, as does Python. There are even bash tools to do this, like xmllint, which you could find with a brief Google search. Parsing XML with sed isn't a good idea. |
thanks TBOne for update. but seems that you have some issue regarding my queries.
|
Quote:
|
All times are GMT -5. The time now is 11:51 PM. |