all groups > flash data integration > december 2006 >
You're in the

flash data integration

group:

XMLConnector + list labels - only shows node?



XMLConnector + list labels - only shows node? fractionsound
12/14/2006 12:00:00 AM
flash data integration: 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
Re: XMLConnector + list labels - only shows node? Scott Johnson
12/14/2006 6:11:04 AM
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

[quoted text, click to view]
Re: XMLConnector + list labels - only shows node? fractionsound
12/18/2006 3:43:47 PM
Re: XMLConnector + list labels - only shows node? Scott Johnson
12/19/2006 7:58:37 PM
I take it my reply did not help?

[quoted text, click to view]
AddThis Social Bookmark Button