export.xml is derived from an exported bug from Bugzilla 3.0 and
slightly changed.
(The difference is the Bug-Id and the short-descirption.)
But I got the fillowing (error) messages:
C:\bugzilla>perl -T ./importxml.pl -v -v ../temp/export.xml
Reading xml
Parsing tree
Can't locate object method "name" via package "XML::Twig::Elt" at ./
importxml.pl line 466, <> chunk 1.
A very new version of ActivePerl is installed: 5.8.8 Built 819 (newest
version is built 820...)
XML-Twig version is v3.09
I had a look into Twig.pm and didn't find "sub name()" inside the
XML::Twig::Elt class section.
I suppose there is a compatibility gap between the expectations of
Bugzilla and the reality of ActivePerl.
Which perl version is needed for XML import into Bugzilla 3.0?
(I read something about version 5.8.1 for windows.)
Is it possible to upgrade the XML::Twig separately?
Stefan
I found a solution by myself: Upgrade of XML-Twig.
Latest version of twig is 3.30.
I got it here: http://www.xmltwig.com/xmltwig/
Stefan
2007/8/3, Stefan <sb...@manz-automation.com>:
> I found a solution by myself: Upgrade of XML-Twig.
> Latest version of twig is 3.30.
> I got it here: http://www.xmltwig.com/xmltwig/
thanks for getting back here with this, it may help others.
I filed https://bugzilla.mozilla.org/show_bug.cgi?id=390781, maybe
this one can be nailed down.
Kind regards
Marc
XML::Twig 3.09 is VERY old, but it does provide the gi method, which
is the same as the name method in later versions. So replacing name by
gi might allow the script to work with older versions.
--
mirod