public static Node FromXml(Type type, string code) { return (Node)new XmlSerializer(type).Deserialize(new StringReader(code)); }