in reply to Creating a xml file in chunks
A while back I tried out XML::Writer, I believe it writes its output continually and only keeps a stack of tags that need to be closed, so I think it's probably worth a try for your purposes.
I did find its API a bit verbose and later stopped using it because of that. If your root tag is literally just "<ROOT>" with no attributes, just print it, as there's nothing to escape and therefore nothing that can go wrong. Of course if you've got complicated documents with attributes and namespaces etc. it's not that simple!
Hope this helps,
-- Hauke D
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Creating a xml file in chunks
by vagabonding electron (Curate) on Jul 12, 2016 at 19:07 UTC | |
by haukex (Archbishop) on Jul 12, 2016 at 20:33 UTC |