Hi All, 

I am using Flex 3.0. 
I am just running an application which receives xml using 
HTTPService. 


---------------------------------- 
xml looks like 


<?xml version=1.0"  encoding="utf-8"?> 
<body> 
         <node1 label="HO(55800)"> 
        <node2 label="G1(550)"> 
        <node3 label="G12(550)"/> 
         </node2> 
         <node2 label="G2(55)"> 
        <node3 label="G21(30)"/> 
        <node3 label="G23(25)"/> 
         </node2> 
         <node2 label="G3(1000)"> 
        <node3 label="G31(450)"> 
                 <node4 label="G311(400)"/> 
                 <node4 label="G312(50)"/> 
        </node3> 
                <node3 label="G32(550)"/> 
         </node2> 
</node1> 
</body> 


------------------------------------ 


I receive the xml through a result event and i stored it into a XML 
Object named newXML. 
if i want to get the node that is having label as G312(50) 
the code goes like this 
// newXML.node1.node2.node3.node4.(@label=="G312(50)") 
         which will returns a xmllist right? 
         yes. it is working perfectly. 


My question is 
         how can i get the node which is having label as "G312(50)" 
without using the node1.node2.node3.node4 


Note: 
i am having an string which is having node1, node2, node3, node4 
         newStr = "node1.node2.node3.node4" 
Is there any way, i can use newStr like newXML.newStr. 
(@label=="G312(50)") 


I just tried for 8 hours but i didn't get any result 


any Idea, suggestions, comments? 


Regards. 
Ravi 


Reply via email to