By all means, if your needs are simple, this is workable. When you get to more complicated things, though, where encoding, namespaces, and character sets come into play, it can be more work to make a simple printer work than it is to use a module that's already solved those problems.
Update: I don't think printing XML is stupid. It just has a nasty tendency to become very complicated. :)
In reply to Re: Re: Converting a data structure to XML
by chromatic
in thread Converting a data structure to XML
by Tanalis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |