hi.
so my XML looks like this:
<root>
<level1>
<level2>
<level3-array-start->
<name text="Dolphins"/>
</level3>
<level3-next-part-in-array->
...
i've setup an XML Connector and imported the schema. i made a binding at
"<root><level1><level2><level3(array-start)" and applied it to a list box (out,
data provider). i went to the list and set the formatter to 'rearrange fields'
and under formatter option, i did "label=name".
The result: the list creates a new line in the label for each part of the
array correctly, but each line reads:
<name text="Dolphins"/>
<name text="Whales"/>
etc.
i've tried all kinds of other options in the "label=" field (label=name.text,
label='<name><text>', etc.)
my question: is there a way to tell the formatter option to go deeper into the
array for the label name? or do i have my whole thing setup wrong?
thanks.
fractionsound
Scott Johnson - 14 Dec 2006 14:11 GMT
Im not 100% sure but the label=name formatter will give you the NODE
name. The text you are trying to load are NODE attributes.
<name text="Dolphins"/> (text="Dolphins") is an attribute of the <name/>
node.
Try rewritting your XML to:
<name>Dolpins</name>
Now Dolphins become a NODE of text type by itself.
See if this helps, then get back to me if we need to find a different
solution.
Worse, if there is no way to load attributes into the listbox at design
time, I can help you do it at run time.
Scotty
> hi.
>
[quoted text clipped - 28 lines]
> thanks.
> fractionsound
fractionsound - 18 Dec 2006 15:43 GMT
<bump>
Scott Johnson - 20 Dec 2006 03:58 GMT
I take it my reply did not help?
> <bump>