Is it possible to use an xpath query? XPath.selectNodes(myXml,"/products/[EMAIL PROTECTED] = 'blah'][name/text() = 'blah']");
julian atienza wrote:
HI, Using this XML Example: <products> <product SKU="7123734"> <name>Big Metal Pot</name> <price>19.95</price> <another>A</another> </product> <product SKU="752585"> <name>Plate</name> <price>12.95</price> <another>B</another> </product> <product SKU="4182476"> <name>Spoon</name> <price>4.95</price> <another>C</another> </product> </products> I'm using XPATH in easy queries, but now i want to make something similar to: XPath.selectNodes(myXml,"/products/product/@sku"); but with the fields "name" and "price" (Both) For example, to obtain an array of elements with only those attributes. Thanks in advance _______________________________________________ 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