void AddChildren(XmlElement gapi_child) { foreach (XmlNode node in elem.ChildNodes) { XmlElement child = node as XmlElement; if (child == null) continue; switch (node.Name) { case "return-value": break; case "parameters": Parameters parms = new Parameters (child, throws); gapi_child.AppendChild (parms.CreateGapiElement (gapi_child.OwnerDocument)); break; default: Console.WriteLine ("Unexpected child on constructor element: " + node.Name); break; } } }
void AddChildren(XmlElement gapi_child) { foreach (XmlNode node in elem.ChildNodes) { XmlElement child = node as XmlElement; if (child == null) continue; switch (node.Name) { case "doc": // Ignore break; case "return-value": ReturnValue retval = new ReturnValue (child); gapi_child.AppendChild (retval.CreateGapiElement (gapi_child.OwnerDocument)); break; case "parameters": Parameters parms = new Parameters (child, false); gapi_child.AppendChild (parms.CreateGapiElement (gapi_child.OwnerDocument)); break; default: Console.WriteLine ("Unexpected child on signal element: " + node.Name); break; } } }