View Full Version : XML Sort & Search
prakash_rc
October 6th, 2005, 11:20 AM
Hello
I am trying to create a XML file & a flash based interface which would:
A) Sort the data on the node specified (I tried, it doesnot sort correctly many times)
b) Search the XML nodes for the text the user inputs and display the data
Say he gets 5 results all five must be displayed.
Can anyone guide me on this one?
Thanks for the help
Brandall
October 6th, 2005, 11:50 AM
The XPathAPI class would be very usefull for you in this case. There isn't alot of documentation on it, but google Flash XPathAPI and the first link has a good site.
The include XPath implementation is quite limited though. If you want one that's a bit more powerful you can use one produced by XFactorStudio. http://www.xfactorstudio.com/ActionScript/AS2/XPath/
Between these two you should have enough information. Also, the functions in both of the API's return Arrays which you should be able to sort using the Array sorting options
shikirocks
January 27th, 2007, 10:51 PM
Does xfactorstudio work with flash 8? I have been having problems running it.
derekcfoley
February 19th, 2008, 07:25 PM
Does xfactorstudio work with flash 8? I have been having problems running it.
any luck with this working on Flash Pro 8? I'm trying to do the same thing - but I need to update element data!
I think its working... but I'm importing other classes too...
import com.xfactorstudio.xml.xpath.*;
import com.XFactorStudio.xml.xpath.XPathDocument;
import mx.xpath.XPathAPI;
botonzico
February 20th, 2008, 07:51 AM
I have no problems working with the xpath from xfactor in flash 8, what kind of problems do you get?
chand
September 3rd, 2009, 04:50 AM
I have no problems working with the xpath from xfactor in flash 8, what kind of problems do you get?
How we can write or edit xml nodes with xpath api. Is there any way to do that, I never used it before but right now I need to change the attribute values based on the logic of my application. Please help me how I can do that.
Thanks
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.