• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Hour 19. Using XML with Flash > Recursive XML Parsing

Recursive XML Parsing

The problem with the preceding task is that it depends on specific pieces of information being at specific node locations. What's the point of calling a node email if you are not even going to refer to it by name? Besides, what if the creator of the XML file accidentally moves the ssnumber tag to the end of the user? Then everything is out of whack, and your code won't find the right values at the right node numbers.

Fortunately, there is a way to parse an XML file one node at a time, check what is there, and populate fields based on the name of the node.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint