public void CreateTest()
        {
            var p = new paypal {
                landingPage  = "a",
                addrOverride = "b"
            };

            var doc = XDocumentFactory.CreateDocFromXmlSerializer(p);

            log.Info(doc.ToString());
        }
Exemple #2
0
        public void ConvertTest()
        {
            var p = new paypal {
                landingPage  = "a",
                addrOverride = "b"
            };

            var xmlDoc = XmlDocumentFactory.Create(p);
            var xDoc   = XDocumentFactory.CreateDocFromXmlSerializer(p);

            log.Info(xmlDoc.ToXDocument().ToString());
            log.Info(xDoc.ToXmlDocument().OuterXml);
        }