Answer the question
In order to leave comments, you need to log in
How to structure the output when parsing xml?
I just started to understand this issue, so do not judge strictly
Ubuntu
There are a huge number of extracts from the USRN in xml format, you need to extract certain data from all these files, for example, I took the CadastralNumber header. I found a solution using the xmlstarlet utility and wrote the following script:
#1 /bin/bash
sudo xmlstarlet
for f in ./*.xml; do xmlstarlet sel -t -v "//*[name()='CadastralNumber']" *.xml > result.txt
done
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question