Skip to content

Instantly share code, notes, and snippets.

@ehatton
ehatton / xml_breaker.py
Last active March 19, 2021 11:22 — forked from nicwolff/XML_breaker.py
Python script to break large XML files
import os
import sys
from xml.sax import parse
from xml.sax.saxutils import XMLGenerator
class CycleFile:
def __init__(self, filename):
self.basename, self.ext = os.path.splitext(filename)
self.index = 0