You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System.Xml.Linq;
-
- namespace ToolsServices
- {
- public static class XmlService
- {
- public static bool IsXML(string content)
- {
- LoggerService.LogError($"XmlService.IsXML");
- try
- {
- XDocument.Parse(content);
- return true;
- }
- catch (Exception ex)
- {
- LoggerService.LogError($"FactureService.IsXML : {ex.Message}");
- return false;
- }
- }
- }
- }
|