A
A
Ashimakunov2020-06-08 21:32:12
C++ / C#
Ashimakunov, 2020-06-08 21:32:12

How to get data between xml tags in C++?

Get data from a file:

<?xml version="1.0" encoding="UTF-8"?>
<FileZilla3 version="3.48.1" platform="windows">
  <RecentServers>
    <Server>
      <Host>8219321</Host>
      <Port>22</Port>
      <Protocol>1</Protocol>
      <Type>0</Type>
      <User>eman</User>
      <Pass>312==</Pass>
      <Logontype>1</Logontype>
      <EncodingType>Auto</EncodingType>
      <BypassProxy>0</BypassProxy>
    </Server>
    <Server>
      <Host>197.2.2.2</Host>
      <Port>21</Port>
      <Protocol>0</Protocol>
      <Type>0</Type>
      <User>root</User>
      <Pass>hello</Pass>
      <Logontype>1</Logontype>
      <PasvMode>MODE_DEFAULT</PasvMode>
      <EncodingType>Auto</EncodingType>
      <BypassProxy>0</BypassProxy>
    </Server>
  </RecentServers>
</FileZilla3>

you need to get data 8219321
i.e. before exit must be 8219321

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Gavrilov, 2020-06-08
@thexaver

We do. Stiller, not good

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question