Skip to Content
0
Aug 29, 2017 at 05:25 AM

How to display XML Model data which Contains multiple child records in sap.ui.table.Table?

185 Views

Hi UI5 Experts,

I am trying to display XML data in a table in UI5. Here i got an issue, that is, xml file has multiple child nodes. I am able to display one child node data but not all child nodes.

Can any one suggest me how to get all the child nodes into my table.

Example file:

<?xml version="1.0"?>

<Employee>

<Name>Alwin</Name>

<Country>SG</Country>

<Address>
<Block>641</Block>

<Street>Jurong East 61</Street>

<Pin>640641</Pin>

</Address>

<Address>

<Block>530</Block>

<Street>Jurong West 61</Street>

<Pin>640530</Pin>

</Address>

</Employee>

From the above XML model, i can be able to read first <Address> node data and can be able to bind but i am not able to get second <Address> node using sap.ui.table.Table.

any suggestions?....