RE: [flexcoders] Building "flat" data object based on XML file with complicated structure

2006-06-21 Thread Tracy Spratt










Is there anyway to post that xml so it
stays formatted?  I really do not like that part of the new yahoo groups.

Tracy

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wayneposner
Sent: Wednesday, June 21, 2006
2:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Building
"flat" data object based on XML file with complicated structure



 







Howdy all!!

Take the following blurb of XML:


bismt="DBT347565" name="ASSY, SPLIT CLUTCH COVER"
hasBom="X" 
path="pdf/347565.pdf" image="pdf/thumbnails/347565.jpg">

bismt="DBT347564" name="SPLIT CLUTCH COVER"
hasBom="X" 
path="pdf/347564.pdf" image="pdf/thumbnails/347564.jpg">

bismt="DBT313551" name="CLUTCH COVER MACH."
hasBom="X" 
path="pdf/313551.pdf" image="pdf/thumbnails/313551.jpg">

bismt="DBT313552" name="CLUTCH COVER WELDMENT"
hasBom="X" 
path="pdf/313552.pdf" image="pdf/thumbnails/313552.jpg">

bismt="J-548F613MK002" name="HR PLATE"
hasBom="X" 
path="pdf/169902.pdf" image="pdf/thumbnails/169902.jpg">

bismt=" 008 302 72 61" name="PLATE(A572-50)1.00""

hasBom=""/>


bismt="DBT313554" name="TUBING" hasBom="X"
path="pdf/313554.pdf" 
image="pdf/thumbnails/313554.jpg">

bismt="J-294-07-026" name="15X13-1/2 TUBING
C1026" hasBom=""/>


bismt="J-548F613MK003" name="PLATE"
hasBom="X" path="pdf/169903.pdf" 
image="pdf/thumbnails/169903.jpg">

bismt=" 008 302 72 55" name="PLATE(A572-50).50""
hasBom=""/>


bismt="DBT313556" name="END TUBE" hasBom="X"
path="pdf/313556.pdf" 
image="pdf/thumbnails/313556.jpg">

bismt=" 008 302 72 67" name="PLATE(A572-50)1.50""

hasBom=""/>


bismt="DBT313557" name="END PLATE" hasBom="X"
path="pdf/313557.pdf" 
image="pdf/thumbnails/313557.jpg">

bismt=" 008 302 72 55" name="PLATE(A572-50).50""
hasBom=""/>





I've been trying to build an array of objects of it and flatten it 
down so that each item node would simply be an entry in the array. 
If I use a recursive function, I only get the deepest node 
returned. If I use the "for each (var prop:XML in myXML.item)" loop 
I only get the children of the root and not the grandchildren. How 
do I get EVERY node???

Thanks!

Wayne






__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "flexcoders" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






[flexcoders] Building "flat" data object based on XML file with complicated structure

2006-06-21 Thread wayneposner
Howdy all!!

Take the following blurb of XML:

  

  

  

  
  

  
  

  
  

  
  

  

  


I've been trying to build an array of objects of it and flatten it 
down so that each item node would simply be an entry in the array.  
If I use a recursive function, I only get the deepest node 
returned.  If I use the "for each (var prop:XML in myXML.item)" loop 
I only get the children of the root and not the grandchildren.  How 
do I get EVERY node???

Thanks!

Wayne





 Yahoo! Groups Sponsor ~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/