RemoveAllNamespaces() public static method

public static RemoveAllNamespaces ( System.Xml.Linq.XDocument xDocumentSource ) : System.Xml.Linq.XDocument
xDocumentSource System.Xml.Linq.XDocument
return System.Xml.Linq.XDocument
Ejemplo n.º 1
0
 internal DynamicXml(XElement xElement)
 {
     XmlElementsCollection = new List <XElement>
     {
         XmlNamespaceRemover.RemoveAllNamespaces(xElement)
     };
 }
Ejemplo n.º 2
0
        public DynamicXml(string xmlString)
        {
            var xDocument = XDocument.Parse(xmlString);
            var xElement  = XmlNamespaceRemover.RemoveAllNamespaces(xDocument).Root;

            XmlElementsCollection = new List <XElement>
            {
                xElement
            };
        }