static void Main(string[] args) { TreeNode root = new TreeNode(null, null, null, null); XmlParser xmlParser = new XmlParser(args[0], root); xmlParser.Parse(); PrintXML printXML = new PrintXML(root); printXML.Print(); }
static void Main(string[] args) { InformationElements rootElement = new InformationElements(null, "", ""); if (args.Length == 1) { XmlParser xmlParser = new XmlParser(args[0], rootElement); xmlParser.Parse(); } PrintXML printXML = new PrintXML(rootElement); printXML.Print(); }