Click to See Complete Forum and Search --> : Using XML::Twig to write


deanat78
11-29-2007, 07:05 PM
I'm supposed to write an XML in perl.. I wanted to use XML::Writer, but I was told to use Twig instead.
I reserached about twig a little but all I found is that it's used for processing XML, ie. reading XML..
I tried looking for the syntax or for examples of how to write XML with Twig but I got nothing...
Can someone show me a little example of how to write just a very simple XML?

Thanks!

Sixtease
12-01-2007, 11:52 AM
Hello. I have very little experience with XML::Twig. It's good for transforming XML documents. So if you have XML on input, XML::Twig can come in handy. When I was searching for a XML processing tool that would fit my needs, I was considering XML::Twig too and I found all the information I needed in the module's documentation (http://search.cpan.org/~mirod/XML-Twig-3.32/Twig.pm). Also, there's a tutorial (http://www.xmltwig.com/xmltwig/tutorial/index.html) on XML::Twig's homesite (http://www.xmltwig.com/xmltwig/).