Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / December 2006



Tip: Looking for answers? Try searching our database.

XMLConnector + list labels - only shows node?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
fractionsound - 14 Dec 2006 05:54 GMT
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>
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.