Class XmlToYamlExtensions


  • public class XmlToYamlExtensions
    extends java.lang.Object
    The class XmlToYamlExtensions provides methods for convert xml string objects to yaml string
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String toYaml​(java.lang.String xmlString)
      Creates from the given xml string a yaml string
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toYaml

        public static java.lang.String toYaml​(java.lang.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