diff --git a/ICD.Common.Utils.Tests/Xml/XmlUtilsTest.cs b/ICD.Common.Utils.Tests/Xml/XmlUtilsTest.cs index 9b0b95a..086e83e 100644 --- a/ICD.Common.Utils.Tests/Xml/XmlUtilsTest.cs +++ b/ICD.Common.Utils.Tests/Xml/XmlUtilsTest.cs @@ -177,13 +177,6 @@ namespace ICD.Common.Utils.Tests.Xml } } - [Test, UsedImplicitly] - public void IsValidXmlTest() - { - Assert.IsFalse(XmlUtils.IsValidXml(@"")); - Assert.IsTrue(XmlUtils.IsValidXml(EXAMPLE_XML)); - } - [Test] public void FormatTest() { diff --git a/ICD.Common.Utils/Xml/XmlUtils.cs b/ICD.Common.Utils/Xml/XmlUtils.cs index 7a58a44..9becca2 100644 --- a/ICD.Common.Utils/Xml/XmlUtils.cs +++ b/ICD.Common.Utils/Xml/XmlUtils.cs @@ -1034,25 +1034,7 @@ namespace ICD.Common.Utils.Xml #endregion - /// - /// Returns true if the given xml is valid. - /// - /// - /// - [PublicAPI] - public static bool IsValidXml(string xml) - { - try - { - IcdXmlDocument document = new IcdXmlDocument(); - document.LoadXml(xml); - return true; - } - catch (IcdXmlException) - { - return false; - } - } + #region Print /// /// Prints the xml document. @@ -1089,5 +1071,7 @@ namespace ICD.Common.Utils.Xml } } } + + #endregion } }