{"id":224,"date":"2016-12-23T12:36:18","date_gmt":"2016-12-23T12:36:18","guid":{"rendered":"https:\/\/ibex.tech\/csharp\/?p=224"},"modified":"2022-02-17T06:24:14","modified_gmt":"2022-02-17T06:24:14","slug":"xmldocument","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/c-sharp\/xml\/xmldocument","title":{"rendered":"XmlDocument"},"content":{"rendered":"<h4>\n\tEditing a xml file<br \/>\n<\/h4>\n<pre>\r\n<code>\r\n\tXmlDoc = new XmlDocument();\r\n\tXmlDoc.Load(filename);\r\n\r\n\t\/\/Remove the xml file header\r\n\tforeach (XmlNode node in XmlDoc)\r\n\t{\r\n\t\tif (node.NodeType == XmlNodeType.XmlDeclaration)\r\n\t\t{\r\n\t\t\tXmlDoc.RemoveChild(node);\r\n\t\t}\r\n\t}\r\n<\/code><\/pre>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Editing a xml file XmlDoc = new XmlDocument(); XmlDoc.Load(filename); \/\/Remove the xml file header foreach (XmlNode node in XmlDoc) { if (node.NodeType == XmlNodeType.XmlDeclaration) { XmlDoc.RemoveChild(node); } } &nbsp;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[37],"tags":[],"class_list":["post-224","post","type-post","status-publish","format-standard","hentry","category-xml"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/224","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/comments?post=224"}],"version-history":[{"count":1,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/224\/revisions"}],"predecessor-version":[{"id":225,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/224\/revisions\/225"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}