all groups > flash data integration > november 2005 >
You're in the

flash data integration

group:

Integrating complex XML structure


Integrating complex XML structure Antonin34
11/22/2005 11:38:14 AM
flash data integration: Hi, im trying to use XMLConnector and dataset to integrate an XML file.
the structure of the xml file is the following :
<members>
<member>
<name/>
<title/>
<adress/>
...(a lot of simple string field)
<links>
<link>
<url/>
<name/>
</link>
<link>
<url/>
<name/>
</link>
</links>
</member>
</members>


When i use the xmlConnector wizard, i have the following structure on my
connector :
results
--members::object
----member::array
-------[n]::object
-------------name::String
-------------title::String
-------------(a lot of simple string field)
-------------links:Object
----------------link::Array
--------------------[n]::Object
----------------------------url:String
----------------------------name:String

My problem is that i can't access my "links" information since i don't really
know :
- how to configure the dataset to manage such a structure
- how to access with actionscript the url and name from the "currentItem"

I succeed in accessing all the other fields, but this one is resisting to me :)

If anyone have a clue,
thanks a lot,

Tonio34



Re: Integrating complex XML structure BurningFeathers
12/8/2005 11:40:29 PM
In the Component Inspector of your DataSet you will find a field called Path.
From what I understand you will need to use XPath statements in order to
reference that information. Search for XPath on the Macromedia website and you
should find what you need.

-BurningFeathers
AddThis Social Bookmark Button