Access child elements in XML, XMLDataSource

Carson Wong asked on July 19, 2016 22:24

Hi,

I have an xml that looks like this:

<?xml version ...>
<channel>
    ...
    <item>
        <content:encoded>
        </content>
    </item>
    <item>
        <content:encoded>
        </content>
    </item>
</channel>

How can I access the "content:encoded" tag?

Recent Answers


Trevor Fayas answered on July 20, 2016 06:35

I don't believe the XML data source allows for multi-level, however in the MarketPlace i have the Universal Api Viewer with Hierarchy support

http://devnet.kentico.com/marketplace/utilities/universal-api-viewer-(with-hierarchy-support)

It takes a little coding but it allows you to turn XML into a Kentico multi-level structure so you can use a hierarchy transformation to render.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.