C
ccjunk
This may be a simple one but I have been working on it without joy for
a couple of days now. Reading books and searching these groups hasn't
helped yet either.
I am trying to create a table dynamically with column headers based on
the value of certain nodes and the rows populated ewith the values of
certain child nodes of the same parent.
My xml is something like this:
<docroot>
<target name="target1">
<types>
<type display_name="type1">
<type_mode>"something"</type_mode>
<typetype>"something"</typetype>
</type>
<type display_name="type2">
<type_mode>"something"</type_mode>
<typetype>"something"</typetype>
</type>
<type display_name="type3">
<type_mode>"something"</type_mode>
<typetype>"something"</typetype>
</type>
</types>
</target>
<target name="target2">
<items>
<item display_name="item1">
<item_mode>"something"</item_mode>
<itemitem>"something"</itemitem>
</item>
<item display_name="item2">
<item_mode>"something"</item_mode>
<itemitem>"something"</itemitem>
</item>
<item display_name="item3">
<item_mode>"something"</item_mode>
<itemitem>"something"</itemitem>
</item>
</items>
</target>
</docroot>
The table I am trying to generate will use the "name" attribute of each
"target" as the header for each column. The rows will be populated by
the value of each "item_mode" listed for that "target".
The goal is to list the information gathered for each target in columns
side by side to allow a visual comparison.
To complicate things a little further, the number of targets will vary
as will the number of "items" for each target.
Can anyone help with this at all?
Thanks a lot
CC
a couple of days now. Reading books and searching these groups hasn't
helped yet either.
I am trying to create a table dynamically with column headers based on
the value of certain nodes and the rows populated ewith the values of
certain child nodes of the same parent.
My xml is something like this:
<docroot>
<target name="target1">
<types>
<type display_name="type1">
<type_mode>"something"</type_mode>
<typetype>"something"</typetype>
</type>
<type display_name="type2">
<type_mode>"something"</type_mode>
<typetype>"something"</typetype>
</type>
<type display_name="type3">
<type_mode>"something"</type_mode>
<typetype>"something"</typetype>
</type>
</types>
</target>
<target name="target2">
<items>
<item display_name="item1">
<item_mode>"something"</item_mode>
<itemitem>"something"</itemitem>
</item>
<item display_name="item2">
<item_mode>"something"</item_mode>
<itemitem>"something"</itemitem>
</item>
<item display_name="item3">
<item_mode>"something"</item_mode>
<itemitem>"something"</itemitem>
</item>
</items>
</target>
</docroot>
The table I am trying to generate will use the "name" attribute of each
"target" as the header for each column. The rows will be populated by
the value of each "item_mode" listed for that "target".
The goal is to list the information gathered for each target in columns
side by side to allow a visual comparison.
To complicate things a little further, the number of targets will vary
as will the number of "items" for each target.
Can anyone help with this at all?
Thanks a lot
CC