hi,
i have the following xml tree:
Code:
<root>
<name/>
<node>
<id>1</id>
<xyz>string1</xyz>
</node>
<node>
<id>2</id>
<xyz>string2</xyz>
</node>
</root>
this structure doesn't change, so i've always two of the nodes "node" (i call them node a and node b). is possible now that i have the following flat database schema (everything in one table)?
- root_id
- name
- id_a
- xyz_a
- id_b
- xyz_b
i've tried this with two component elements, like
Code:
<component name="Node1" node="node">
<property name="id" node="id" column="id_a" type="string"/>
...
<component>
<component name="Node1" node="node">
<property name="id" node="id" column="id_b" type="string"/>
...
</component>
but, unfortunately then i get just the second node in my result tree (i'm just reading from the database).
is there any possibility to map this tree to one db table?
thanks.[/code]