Class JaxbXmlConverter

    • Method Detail

      • getRootElement

        public String getRootElement()
      • xmlToJson

        public String xmlToJson​(String sourceXml)
        Convert xml to json. If elementNameToValueNameMap is not null, it will setup XmlValue attribute name properly
        Specified by:
        xmlToJson in interface ConfigConverter
        Parameters:
        sourceXml -
        Returns:
        json string
      • removeEmptyValueTag

        public org.json.JSONObject removeEmptyValueTag​(org.json.JSONObject json)
        Remove empty XmlValue tag
        Parameters:
        json -
        Returns:
        json without empty value tag
      • getXmlSchema

        public XmlSchema getXmlSchema()