On Thu, 24 Oct 2002, Kris Boulez wrote:

> What is peoples preferred module for writing XML (files) from within
> Perl ? The data is read by a perl script from different (heterogeneous) 
> sources and stored internally in a tree of objects.

The prefered way is to make calls to XML::SAX to output the data, but 
"prefered" is a very vauge term.  You might want to use one of the SAX 
drivers that use perl data structures since you've already got one.  Or it 
might be simpler to use a differnt module all together as you're only 
dealing with files...

To be honest, this is a bit of an open ended question, and, well, there's 
more than one way to do it.  I recommend:

 a) Reading Perl & XML (o'reilly) (also part of perl cd bookshelf 3)
 b) Reading all of Kip's articles on xml.com [1]
 c) Joining the perl XML mailing list [2]
 d) Asking people on #axkit / #axkit-dahut [3]

Hope that's helpful.

Mark.

[1] I suggest you start here: 
    http://www.xml.com/pub/a/2001/04/18/perlxmlqstart1.html
[2] http://lists.perl.org/showlist.cgi?name=perl-xml
[3] irc.rhizomatic.net (or local node), port 6667.

-- 
s''  Mark Fowler                                     London.pm   Bath.pm
     http://www.twoshortplanks.com/              [EMAIL PROTECTED]
';use Term'Cap;$t=Tgetent Term'Cap{};print$t->Tputs(cl);for$w(split/  +/
){for(0..30){$|=print$t->Tgoto(cm,$_,$y)." $w";select$k,$k,$k,.03}$y+=2}



Reply via email to