public static RemoveAllNamespaces ( System.Xml.Linq.XDocument xDocumentSource ) : System.Xml.Linq.XDocument | ||
xDocumentSource | System.Xml.Linq.XDocument | |
Résultat | System.Xml.Linq.XDocument |
internal DynamicXml(XElement xElement) { XmlElementsCollection = new List <XElement> { XmlNamespaceRemover.RemoveAllNamespaces(xElement) }; }
public DynamicXml(string xmlString) { var xDocument = XDocument.Parse(xmlString); var xElement = XmlNamespaceRemover.RemoveAllNamespaces(xDocument).Root; XmlElementsCollection = new List <XElement> { xElement }; }