/// <summary> /// Creates the node structure for this profile. /// </summary> /// <returns>The root 'profile' node.</returns> internal Node CreateNodes() { var node = new Node("profile"); node.Tag = name; node.Attributes.Add(VERSION_ATTRIBUTE, ConversionHelper.FormatHexUInt(version)); if (controllers != null) { node.Children.AddLast(controllers.CreateNodes()); } if (commands != null && commands.Count != 0) { node.Children.AddLast(commands.CreateNodes()); } if (blasts != null && blasts.Count != 0) { node.Children.AddLast(blasts.CreateNodes()); } return(node); }