Hello :)
I have a file XML. It looks like that :
xml : XML = <process
name="beInAssInAcEn"
targetNamespace="http://enterprise.netbeans.org/bpel/SimulationEmprunt1/beInAssInAcEn"
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
xmlns:tns="http://enterprise.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>;
When I do this instruction :
childrenSequence_Netbeans = xml.children()[0];
trace("voir le resul is 1 :
"+childrenSequence_Netbeans.elements("*")[0].toXMLString());
the resut is :
voir le resul is 1 : <invoke name="Invoke_2"
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:sxt="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Trace"
xmlns:sxed="http://www.sun.com/wsbpel/2.0/process/executable/SUNExtension/Editor"
xmlns:tns="http://enterprise.netbeans.org/bpel/SimulationEmprunt1/beInAssInAcEn"/>
But I would like to take only <invoke name="Invoke_2"/> without these attributs
:(
Any Idea please, I tried the same with children,,and i have the same result :(
Thanks
regards
_________________________________________________________________
Hotmail arrive sur votre téléphone ! Compatible Iphone, Windows Phone,
Blackberry, …
http://www.messengersurvotremobile.com/?d=Hotmail