M
M
MOTORIST2016-07-19 00:34:06
go
MOTORIST, 2016-07-19 00:34:06

Parsing xml with identical nested elements. How?

Hello!
How to parse a view structure:

<items>
    <item>
        <title>title</title>
        <item>
            <title>title</title>
            <item>
                <title>title</title>
                <p>asdasd</p><p>asdasd<p>
            </item>
        </item>
    </item>
    <item>
        <title>title</title>
        <p>asdasd</p><p>asdasd<p>
    </item>
</items>

Title I take away without problems. I put the structure in itself. How to pick up html at the last levels, if it is not present at the previous levels?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Semchenko, 2016-07-19
@0xcffaedfe

How to create xml with repeated tag?
How to parse xml with nested html?

#
#algooptimize #bottize, 2016-07-19
@user004

Have you tried setting the structure as a tree? Haven't tried it myself, maybe tonight.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question