[Scribus] Parsing an .sla file with perl

Gregory Pittman gpittman
Fri Mar 17 01:58:49 CET 2006


Here is a small program from Perl & XML (O'Reilly) to create a tree 
display parsing a Scribus file.

One trick one needs to do is to go through and change in Ctrl-E's, since 
this causes an error in XML::Parser.
In emacs, I took my file, did Shift-Alt-% (Search and Replace), then 
Ctrl-Q, Ctrl-E (you have to use Ctrl-Q to be able to enter Ctrl-E), and 
replaced it with @ (so I could find and switch back later).

After that, Scribus files parse without problems.

Greg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xmltree.pl
Type: application/x-perl
Size: 174 bytes
Desc: not available
Url : http://nashi.altmuehlnet.de/pipermail/scribus/attachments/20060317/869ba199/attachment.pl 



More information about the scribus mailing list