xmlStrToJsonStr function

String xmlStrToJsonStr(
  1. String xml
)

Implementation

String xmlStrToJsonStr(String xml) {
  final Xml2Json xml2json = Xml2Json()..parse(xml);
  return xml2json.toGData().replaceAll("\$t", "value");
}