Grant, Thank you very much for your help on this!
Doug Coning Software Developer FORUM Solutions, LLC > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:flashcoders- > [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] > Sent: Tuesday, November 01, 2005 2:18 PM > To: flashcoders@chattyfig.figleaf.com > Subject: Re: [Flashcoders] XPath Query HELP! > > doug, do you have a better xml string, the one in your example is not > valid xml and the flag you mentioned is not in it... > > grant > > ----- Original Message ----- > From: Doug Coning [EMAIL PROTECTED] > To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com > Sent: 11/1/05 2:11 PM > Subject: [Flashcoders] XPath Query HELP! > > > I am trying to run a query using xfactorstudio to find all the elements > > where a flag (bit) is set to '1' or true. However, I have been > > unsuccessful at getting the class to return any items when trying to > > query on the node. > > > > When I use the Xpath.selectNodes() function and pass the queries below, > > nothing works. Please help! > > > > Here's a sample: > > > > import com.xfactorstudio.xml.xpath.*; > > _global.XPath = XPath; > > > > var myStr:String = > > "0Item > > 119.951Plate > > 12.950Spoon4.95"; > > > > var myXML:XML = new XML(myStr); > > > > trace("This works: \t\t" + > > XPath.selectNodes(myXML,"/products/product[name = 'Plate']")); > > trace("This doesn't work: " + > > XPath.selectNodes(myXML,"/products/product[flag = '1']")); > > trace("This doesn't work: " + > > XPath.selectNodes(myXML,"/products/product[flag = 1]")); > > trace("This doesn't work: " + > > XPath.selectNodes(myXML,"/products/product[flag > 0]")); > > > > Thanks, > > > > Doug Coning > > Software Developer > > FORUM Solutions, LLC > > > > This e-mail and any attachment(s) are intended for the specified > recipient(s) only and are legally protected. If you have received this > communication in error, please "reply to" sender's e-mail address with > notification of the error and then destroy this message in all electronic > and physical forms. > > _______________________________________________ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected. If you have received this communication in error, please "reply to" sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms. _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders