Re: Problem with XML::Twig
Madhu Sudan Hari <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
Thanks a lot , Mirod. xml_pp worked really well. But the keep_space and the pretty_print => "indented" options didn't work. regards Madhu On Mon, Sep 7, 2009 at 5:27 AM, mirod <[email protected]> wrote: > 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 > _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs