R
R
rafaelSalihov2020-02-28 08:35:51
Java
rafaelSalihov, 2020-02-28 08:35:51

How to parse such an xml string - one nesting level?

Yandex translate gives such xml string

<Translation code="200" lang="en-ru">
<text>Ф</text>
<text>Привет Мир</text>
</Translation>

how to parse and display it in java? I found instructions on the Internet that are similar; they do not fit here somehow one level of nesting, all have two or something like that.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2020-02-28
@Zarom

This is valid XML, it should be perfectly parsed by absolutely any parser.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question