A relational network represents hierarchy and linkage between objects and a good data structure, such as the tree data structure. This recipe is going to show how to parse the data for it to be ready to generate a relational network.
Open the files downloaded from the Packt Publishing website for Chapter 8 | Recipe 1 to follow along.
The following steps will show you how to parse the data for a relational network:
Data.xml. The following is what one entry looks like:
<node name="NODE NAME" color="0x0000ff"></node>
Main.as, add the embed code to attach the data to our project:
[Embed(source = "/Data.xml", mimeType="application/octet-stream")] private var XmlData:Class; ...