Be aware that the @AttrName syntax is a bit risky. All of the examined nodes must have the attribute or the line will error. Only use it when you have complete and permanent control of the xml
A safer syntax is attribute(AttrName). Tracy Spratt, Lariat Services, development services available _____ From: [email protected] [mailto:[email protected]] On Behalf Of Nini7016 Nini7016 Sent: Wednesday, March 24, 2010 10:45 AM To: [email protected] Subject: RE: [flexcoders] XML Problem ? how to retreive children from XML without having the same attributs of the principal object Thank you very very much :):) _____ To: [email protected] From: [email protected] Date: Wed, 24 Mar 2010 15:42:59 +0200 Subject: Re: [flexcoders] XML Problem ? how to retreive children from XML without having the same attributs of the principal object default xml namespace = "http://docs. <http://docs.oasis-open.org/wsbpel/2.0/process/executable> oasis-open.org/wsbpel/2.0/process/executable"; var xml:XML = <process name="beInAssInAcEn" targetNamespace="http://enterprise. <http://enterprise.netbeans.org/bpel/SimulationEmprunt1/beInAssInAcEn> netbeans.org/bpel/SimulationEmprunt1/beInAssInAcEn" xmlns="http://docs. <http://docs.oasis-open.org/wsbpel/2.0/process/executable> oasis-open.org/wsbpel/2.0/process/executable" xmlns:xsd="http://www.w3. <http://www.w3.org/2001/XMLSchema> org/2001/XMLSchema" xmlns:sxt="http://www.sun. <http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace> com/wsbpel/2.0/process/executable/SUNExtension/Trace" xmlns:sxed="http://www.sun. <http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor> com/wsbpel/2.0/process/executable/SUNExtension/Editor" xmlns:tns="http://enterprise. <http://enterprise.netbeans.org/bpel/SimulationEmprunt1/beInAssInAcEn> netbeans.org/bpel/SimulationEmprunt1/beInAssInAcEn"> <sequence> <invoke name="Invoke_2"/> <assign name="Assign1"/> <copy> <from> </from> <to> </to> </copy> <invoke name="Invoke_4"/> <invoke name="Activity_18"/> </sequence> </process>; trace(xml.sequence.invoke.(valueOf()[email protected]() === "Invoke_2").toXMLString()); _____ Commander un cadeau en ligne discrètement? Voir la <http://clk.atdmt.com/FRM/go/207186971/direct/01/> solution offerte par Internet Explorer8

