A
A
AlNBeliever2014-05-14 07:37:18
Parsing
AlNBeliever, 2014-05-14 07:37:18

How to extract value from XML file?

It is required to remove the value from the file, which is enclosed in a tag <IP_ADRESS>10.**.**.**</IP_ADRESS>.
. There are many other parameters in the file itself that I do not need.
File type:

<<LOGIN_NAME>login</LOGIN_NAME>
<CLIENT_NAME>name</CLIENT_NAME>
<ADRESS>**</ADRESS>
<IP_ADRESS>10.*.*.*</IP_ADRESS>
<FIRST_DATE_ACT>date</FIRST_DATE_ACT>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AlNBeliever, 2014-05-15
@AlNBeliever

I did it easier. I copied everything into an Excel spreadsheet. Further, with the ctrl + h combination, I replaced the extra parameters with a space. So I got the value I was looking for from the garbage heap.
Forgive me programmers.

A
Andrew, 2014-05-14
@couchemar

The context is not very clear. Usually XPath is used for this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question