I have some classes I wrote which make using xfactorstudio's Xpath classes easier, if you want them. Comes with a little bit of example code commented in the class. Requires xfactorstudio's classes to be installed already.
Here is the comment and example code in one of the classes: Description: This class was created to make getting xfactorstudios' XPath node values much simpler and easier. It handles CDATA nodes, which can be very tricky with XPath. It also converts the raw strings representations of booleans and numbers to their actual primitive values. It will decode character entities in XML values to real representations. For example, it converts "&" to "&". Usage Example: //initialize the object: var xd:XData = new XData(myXMLObject); //get value from an attribute: var myAttributeString:String = xd.getString("menu/items/[EMAIL PROTECTED]"); //get value from a node value: var myNodeString:String = xd.getString("menu/items/item[3]/text()"); //finds the array position of "Welcome" in example node <item title="Welcome"/> var myAttributePosition:Number = xd.getNodePosition("menu/items/item", "title", "Welcome"); //get a CDATA string: var myCDATAParagraph:String = xd.getString("menu/items/item[3]/content", true); Jason Merrill Bank of America Learning & Organization Effectiveness - Technology Solutions >>-----Original Message----- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of Weyert de Boer >>Sent: Tuesday, June 27, 2006 3:08 PM >>To: Flashcoders mailing list >>Subject: [Flashcoders] > Documentation of the XFactor's XPath class? >> >>Does anyone know where I can find any form of documentation how to use >>the XPath classes for ActionScript 2 writtenb y XFactorStudios? >> >>Thanks! >> >>Weyert >>_______________________________________________ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com >>http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com