I have an XMLlist Made in an XML document in XML, there is a tree in Flex tags all different And the properties are a group of each, and are not compatible. When I publish the file I want to be named tag in folders in the tree. It's easy with "@id" or something similar .., but I'm not getting what it can be used to tag from. Thanks
You have to use a custom label function to do this Here is an example hope that this helps
. & Lt ;? Xml version = "1.0" encoding = "utf-8" & gt; & Lt; Window App xmlns = "http://ns.adobe.com/mxml/2009" & gt; & Lt; Script & gt; & Lt; [CDATA [[Bindable] XML on public: XML = & LT; Node1 & gt; & Lt; Node2a & gt; & Lt; Node3 & gt; & Lt; Node4 / & gt; & Lt; / Node3 & gt; & Lt; / Node2a & gt; & Lt; Node2b / & gt; & Lt; / Node1 & gt; Public function myLabelFunction (item: object): string {var node: XML = XML (item); Var node name: QName = node.name (); Return nodeName.localName; }] & Gt; & Lt; / Script & gt; & Lt; Tree width = "100%" dataProvider = "{XML}" labelFunction = "myLabelFunction" /> & Lt; / WindowedApplication & gt;
Comments
Post a Comment