Exemple #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("***** A Tale of Two XML APIs *****");
            BuildXmlDocWithDOM();
            BuildXmlDocWithLINQToXml();

            // Test functionality from the VB library in this solution.
            VbXmlLiteralLibrary.XmlLiteralExample vbXml = new VbXmlLiteralLibrary.XmlLiteralExample();
            vbXml.MakeXmlFileUsingLiterals();

            Console.WriteLine("XML data saved to output directory.");

            // Delete a node.
            DeleteNodeFromDoc();
            Console.ReadLine();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("***** A Tale of Two XML APIs *****");
            BuildXmlDocWithDOM();
            BuildXmlDocWithLINQToXml();

            // Test functionality from the VB library in this solution.
            VbXmlLiteralLibrary.XmlLiteralExample vbXml = new VbXmlLiteralLibrary.XmlLiteralExample();
            vbXml.MakeXmlFileUsingLiterals();

            Console.WriteLine("XML data saved to output directory.");

            // Delete a node.
            DeleteNodeFromDoc();
            Console.ReadLine();
        }