Re: Problem with XML::Twig
mirod <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
Madhu Sudan Hari wrote: > I'm using XML::Twig to process huge XML files. When I'm rewriting some > of the xml files using "twig_print_outside_roots " all the newlines are > being omitted and the output looks not so good. How can I get those > newlines in place. I'm using windows (i hope thats not a problem) You can use the keep_spaces => 1 option when you create the twig, or the pretty_print => 'indented' option. If all fails, after processing, use xml_pp to pretty print the resulting file. Does any of these help? -- mirod _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs