AmazedSaint.Elastic.Tests.DynamicExtensionsTest.CreateTestXElementWithNamespaces C# (CSharp) Метод

CreateTestXElementWithNamespaces() приватный Метод

private CreateTestXElementWithNamespaces ( ) : System.Xml.Linq.XElement
Результат System.Xml.Linq.XElement
        private XElement CreateTestXElementWithNamespaces()
        {
            string data = @"<Store Name=""Acme Store"" xmlns=""http://example.com/store/v1-0"">
            <Location Address= ""West Avenue"" />
            <Products Count=""1""  xmlns=""http://example.com/products/v1-0"">
            <Product Name =""Acme Bun"" />
            </Products>
            <Owner>Content</Owner>
            </Store>";

            return XElement.Parse(data);
        }