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.

23 lines
514B

  1. using System.Xml.Linq;
  2. namespace ToolsServices
  3. {
  4. public static class XmlService
  5. {
  6. public static bool IsXML(string content)
  7. {
  8. LoggerService.LogError($"XmlService.IsXML");
  9. try
  10. {
  11. XDocument.Parse(content);
  12. return true;
  13. }
  14. catch (Exception ex)
  15. {
  16. LoggerService.LogError($"FactureService.IsXML : {ex.Message}");
  17. return false;
  18. }
  19. }
  20. }
  21. }