Skip to content

Instantly share code, notes, and snippets.

View MichaelJRussell's full-sized avatar

Michael Russell MichaelJRussell

View GitHub Profile
@MichaelJRussell
MichaelJRussell / xml_converter.py
Created January 27, 2024 19:05
Python script to convert a JSON list of objects to XML
import json
from xml.sax.saxutils import escape
from xml.etree.ElementTree import Element, tostring
from xml.dom.minidom import parseString
import logging
from lxml import etree
logger = logging.getLogger(__name__)
class XmlConverter: