コード例 #1
0
        private static void CreateChildNodes(ROMNode rootNode)
        {
            Log("Creating a child object");
            ROMNode childNode = ObjectFactory("DerivedObject");

            rootNode.AddChildROMObject(childNode);
            childNode.SetAttribute("childAttr", "some value of value");
            //setting a value on the Object Node
            childNode.SetROMObjectValue("valueTest", "myValue");
            ROMNode childOfChild = ObjectFactory("DerivedObject2");

            childNode.AddChildROMObject(childOfChild);
        }