Class XmlToYamlExtensions

java.lang.Object
io.github.astrapi69.yaml.XmlToYamlExtensions

public class XmlToYamlExtensions extends Object
The class XmlToYamlExtensions provides methods for convert xml string objects to yaml string
  • Method Details

    • toYaml

      public static String toYaml(String xmlString) throws com.fasterxml.jackson.core.JsonProcessingException
      Creates from the given xml string a yaml string
      Parameters:
      xmlString - the xml string
      Returns:
      the yaml string
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException - If an error occurs when converting object to String