Flexer
05-16-2007, 06:50 AM
Hi,
I need some help please, I am using a tree that is binded to XML (not xmlcollection).
I am using the library XPathQuery which is pretty cool.
xmlCurrentList contains my XML and is binded to the tree dataprovider
var nodeList:XMLList = XPathQuery.execQuery(xmlCurrentList, "/List//Profile[@ProfileId=" + Id + "]/../*");
var xlcList:XMLListCollection = new XMLListCollection(nodeList);
sortXMLCollection (xlcList, "@Sequence");
xlcList.refresh();
All this works but after the xlcList is sorted based on my sequence field, the change is not reflected on the tree!
I need somehow to make the nodeList equal to the new sorted list !
some help please.
Thanks
I need some help please, I am using a tree that is binded to XML (not xmlcollection).
I am using the library XPathQuery which is pretty cool.
xmlCurrentList contains my XML and is binded to the tree dataprovider
var nodeList:XMLList = XPathQuery.execQuery(xmlCurrentList, "/List//Profile[@ProfileId=" + Id + "]/../*");
var xlcList:XMLListCollection = new XMLListCollection(nodeList);
sortXMLCollection (xlcList, "@Sequence");
xlcList.refresh();
All this works but after the xlcList is sorted based on my sequence field, the change is not reflected on the tree!
I need somehow to make the nodeList equal to the new sorted list !
some help please.
Thanks