Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    XML to datasources

    Hi,

    I have an xml like this one:
    Code:
    <readers>
    	<reader>
    		<readerId>1</readerId>
    		<name>Reader 1</name>
    		<antennas>
    			<antenna>
    				<antennaId>1</antennaId>
    				<name>Antenna 1</name>
    			</antenna>
    			<antenna>
    				<antennaId>2</antennaId>
    				<name>Antenna 2</name>
    			</antenna>
    		</antennas>
    	</reader>
    .......
    </readers>

    I want to display this info in a nested grid, were the main one displays the readers and nested the antenas attached to each reader.

    If I include "attachTo" to the antenna description I'm able to do it following the example Nested Grid and XPathBinding, by setting a Criteria to attachedTo, reader.readerId.

    However I don't want to include this new element in the antena as it is inheritied from the xml tree (antenna belongs to reader).

    Any idea how I can relate both things.

    The issue is I want afterward link it to my REST webservice that will match http:/xxx/readers/y/antenna/z

    Regards
Working...
X